Skip to content
Myr

fix @click.command example by adding parens

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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

authored by Jarek Lipski · committed by David Lord · parent 1a9caed · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/cli.rst+1 added-1 removed
304 unmodified lines
305306 import click307 from flask.cli import with_appcontext308309 @click.command309 @click.command()310 @with_appcontext311 def do_work():312 ...313
153 unmodified lines