By default, click adds a --help
option that outputs a standardised usage text based on the structure of the click commands:
Usage: ...
Options: ...
Commands:
...
...
How to override this behaviour to have a custom help output ? What I am trying to do is to output a custom message using rich library.
click
is that it make sense out of the box. I think if you want to extend click, you might want to write an extension. Have a look at github.com/click-contrib perhaps you can find another project that uses the API you need. – Judaist