Yes, you can set the help parameter to add_argument on argparse.SUPPRESS . Here is an example from the argparse documentation :
>>> parser = argparse.ArgumentParser(prog='frobble') >>> parser.add_argument('--foo', help=argparse.SUPPRESS) >>> parser.print_help() usage: frobble [-h] optional arguments: -h, --help show this help message and exit
srgerg Jun 20 '12 at 7:19 2012-06-20 07:19
source share