Skip to content
Myr

Follow PEP8 recommendation for param naming (#1073)

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

authored by Renne Rocha · committed by Adrian · parent 373a3ae · Browse files · 1 file+3 added−3 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+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:docs/options.rst+3 added-3 removed
60 unmodified lines
61.. click:example::6263 # How to use a Python reserved word such as `from` as a parameter64 @click.command()65 @click.option('--from', '-f', '_from')65 @click.option('--from', '-f', 'from_')66 @click.option('--to', '-t')67 def reserved_param_name(_from, to):68 click.echo('from %s to %s' % (_from, to))67 def reserved_param_name(from_, to):68 click.echo('from %s to %s' % (from_, to))6970And on the command line:7172.. click:run::
724 unmodified lines