suppressing argparse arguments in the help

A

Andrea Crotti

I have a script that might be used interactively but also has some
arguments that
should not be used by "normal" users.
So I just want to suppress them from the help.
I've read somewhere that the help=SUPPRESS should do what I want:

parser.add_argument('-n', '--test_only',
action='store_true',
help=SUPPRESS)

but that's what I get from "myapp -h", which is not exactly what I was
looking for..


-f, --first_level ==SUPPRESS== (default: False)
--never_redevelop ==SUPPRESS== (default: False)


Any other solutions?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top