From 363205bdc3abcfeed08c7e85e397fb7a7dc9ef07 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 7ce63fd2..6bae15db 100644 --- a/docs/cli.rst +++ b/docs/cli.rst @@ -306,7 +306,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(): ...