You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#1018 and #1225 seems to have fixed supporting a global show_default option via context settings, but in Click 7.1.2, it doesn't cover my use case yet.
$ python test-click.py -xUsage: test-click.py [OPTIONS] COMMAND [ARGS]...Options: -x, --xhelp Show this message and exit. [default: False]Commands: do
$ python test-click.py do -x==== main ====True['-x', '--xhelp']Usage: test-click.py do [OPTIONS]Options: -v, --value INTEGER some value [default: 123] -x, --xhelp Show this message and exit.
$ python test-click.py do==== main ====True['-x', '--xhelp']==== do ====True['-x', '--xhelp']----123
Actual Behavior
But the current implementation seems to loose the value of show_default when "going into" subcommands.
$ python test-click.py -xUsage: test-click.py [OPTIONS] COMMAND [ARGS]...Options: -x, --xhelp Show this message and exit. [default: False]Commands: do
$ python test-click.py do -x==== main ====True['-x', '--xhelp']Usage: test-click.py do [OPTIONS]Options: -v, --value INTEGER some value -x, --xhelp Show this message and exit.
$ python test-click.py do==== main ====True['-x', '--xhelp']==== do ====None['-x', '--xhelp']----123
Environment
Python version: 3.8.3
Click version: 7.1.2
The text was updated successfully, but these errors were encountered:
Expected Behavior
#1018 and #1225 seems to have fixed supporting a global
show_default
option via context settings, but in Click 7.1.2, it doesn't cover my use case yet.I thought the following should work with 7.1+:
Actual Behavior
But the current implementation seems to loose the value of
show_default
when "going into" subcommands.Environment
The text was updated successfully, but these errors were encountered: