I have an argument that is an internal debug flag and shouldn't be run by users who don't know what they are doing. I realize that hiding it is in essence security by obscurity, but I'm not concerned about malice so much as incompetence. Optparse had a SUPPRESS_HELP option, is there and argparse equivalent?
parser.add_argument('--secret', help=argparse.SUPPRESS)
From here: http://argparse.googlecode.com/svn/trunk/doc/argparse-vs-optparse.html
First Google result for argparse suppress_help
, by the way.
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