Skip to content
Myr

Merge pull request #1092 from sirosen/docfix-example

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

Rebase of #572; make example work with setuptools entry points

authored by David Lord · committed by GitHub · parents 56314db, 8e7a47a · Browse files · 1 file+4 added−0 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+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:docs/commands.rst+4 added
85 unmodified lines
86 @click.group()87 @click.option('--debug/--no-debug', default=False)88 @click.pass_context89 def cli(ctx, debug):90 # ensure that ctx.obj exists and is a dict (in case `cli()` is called91 # by means other than the `if` block below92 ctx.ensure_object(dict)9394 ctx.obj['DEBUG'] = debug9596 @cli.command()97 @click.pass_context
465 unmodified lines