Implement -h small --help option for all commands
Is there a way to define it once?
- https://click.palletsprojects.com/en/8.1.x/api/#click.help_option
- https://click.palletsprojects.com/en/8.1.x/api/#context
- https://github.com/pallets/click/issues/2132
- https://github.com/pallets/click/issues/1433
Yes:
ctx.help_option_names = ["-h", "--help"]
Edited by Moul