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
{{ message }}
Repository navigation
show_default and default_map don't play nice together #1548
$ # This is expected
$ ./cli.pyb
$ # This is not (default should be b)
$ ./cli.py --helpUsage: cli.py [OPTIONS]Options: -a TEXT [default: c] --help Show this message and exit. [default: False]
Expected Behavior
I expect the default shown to be identical to the one being used.
Actual Behavior
The default shown was the value provided as default, without taking the default_map into account
I may be able to make a failing test or a PR if you point me to the right direction. Would calling lookup_default instead of .default in this line be enough ?
Ok, I'll try to remember to communicate here whether it happens or not. If I have neither said nor committed anything by May 17th, assume I have forgotten about it and you're free to go :)
Activity
ewjoachim commentedon May 9, 2020
I may be able to make a failing test or a PR if you point me to the right direction. Would calling
lookup_defaultinstead of.defaultin this line be enough ?click/src/click/core.py
Line 1936 in bce4ea4
davidism commentedon May 9, 2020
Seems plausible, happy to review a PR.
ewjoachim commentedon May 9, 2020
Ok, I'll try to remember to communicate here whether it happens or not. If I have neither said nor committed anything by May 17th, assume I have forgotten about it and you're free to go :)
ewjoachim commentedon May 9, 2020
Yay, done :)