From 47dadcfe15160e5ffbb9cc107c50c232a17b463a Mon Sep 17 00:00:00 2001 From: Jarek Lipski Date: Wed, 19 Sep 2018 18:55:12 +0200 Subject: [PATCH] fix @click.command example by adding parens Otherwise the example fails with the following error: "name = name or cmd.name AttributeError: 'function' object has no attribute 'name'". More details: https://stackoverflow.com/a/51923415/4619705 --- docs/cli.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/cli.rst b/docs/cli.rst index a69fa874..78f8e3d5 100644 --- a/docs/cli.rst +++ b/docs/cli.rst @@ -308,7 +308,7 @@ decorator instead of the Flask decorator, you can use import click from flask.cli import with_appcontext - @click.command + @click.command() @with_appcontext def do_work(): ...