Skip to content
Myr

Fixed a doc example.

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

authored by Armin Ronacher · committed by Armin Ronacher · parent 5fc29ba · Browse files · 1 file+5 added−6 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+5 added−6 removed

  • other:+5 added−6 removed

1 file+5 added−6 removed

modified:docs/commands.rst+5 added-6 removed
166 unmodified lines
167 @cli.command()168 def sync():169 click.echo('The subcommand')170171And how it works in practice::171And how it works in practice:172173 $ python tool.py174 I was invoked without subcommand175 $ python tool.py sync176 I am about to invoke sync177 The subcommand173.. click:run::174175 invoke(cli, prog_name='tool', args=[])176 invoke(cli, prog_name='tool', args=['sync'])177178.. _custom-multi-commands:179180Custom Multi Commands181---------------------
322 unmodified lines