I'm using click
to build a CLI in Python. I have several options to the command I'm defining, and I want some of them to be hidden in --help
. How can I do that?
Yes, you can. Use
@click.option(..., hidden=True)
The feature is now (March 2019) in the stable release of Click.
Please note: In the first implementation the functionality was realised with a parameter show=False
, but is now done with hidden=True
.
This feature is on the verge of being included in click, you can follow the development here:
https://github.com/mitsuhiko/click/pull/500
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With