Click 8.0.0 group.add_command(..)
does not replace name in description and when looking up defaults
#1895
Milestone
group.add_command(..)
does not replace name in description and when looking up defaults
#1895
With click 8.0.0
click.group.add_command(..)
changed the behavior in how new command names are used:Both the help text for the command as well as when looking up default values in
default_map
the previous command name instead of the one added by the group are shown.Minimal example:
Run the above:
I would have expected that both the help shows the name of the command as "bar" (as using "foo" will result in an error)
and the lookup for the default using "bar" as a key.
Environment:
The text was updated successfully, but these errors were encountered: