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 GitHub · parent 19a0a7d · 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
306 unmodified lines
307308 import click309 from flask.cli import with_appcontext310311 @click.command311 @click.command()312 @with_appcontext313 def do_work():314 ...315
153 unmodified lines