Skip to content
Myr

Merge branch 'master' of https://github.com/mitsuhiko/click

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 · parents 3d8ecfb, 3e199b2 · Browse files · 2 files+2 added−2 removed
This commit

State

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

Diff stats

2 files+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:click/types.py+1 added-1 removed
105 unmodified lines
106107108class Choice(ParamType):109 """The choice type allows a value to checked against a fixed set of110 supported values. All of these values have to be integers.110 supported values. All of these values have to be strings.111112 See :ref:`choice-opts` for an example.113 """114 name = 'choice'
337 unmodified lines
modified:docs/options.rst+1 added-1 removed
330 unmodified lines
331The `expose_value` parameter prevents the pretty pointless ``version``332parameter from being passed to the callback. If that was not specified, a333boolean would be passed to the `hello` script. The `resilient_parsing`334flag is applied to the context if click wants to parse the command line335without and destructive behavior that would change the execution flow. In335without any destructive behavior that would change the execution flow. In336this case, because we would exit the program, we instead do nothing.337338What it looks like:339
269 unmodified lines