forked from orbit-oss/flask
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:
parent
19a0a7d771
commit
47dadcfe15
1 changed files with 1 additions and 1 deletions
|
|
@ -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():
|
||||
...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue