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
This commit is contained in:
Jarek Lipski 2018-09-19 18:55:12 +02:00 committed by David Lord
parent 1a9caedb49
commit 363205bdc3
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8

View file

@ -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():
...