argparse
Bob Gailer
bgailer at gmail.com
Fri Mar 11 18:25:27 EST 2016
More information about the Python-list mailing list
Fri Mar 11 18:25:27 EST 2016
- Previous message (by thread): argparse
- Next message (by thread): argparse
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mar 11, 2016 6:20 PM, "Fillmore" <fillmore_remove at hotmail.com> wrote: > > > Playing with ArgumentParser. I can't find a way to override the -h and --help options so that it provides my custom help message. > > -h, --help show this help message and exit > > Here is what I am trying: > > parser = argparse.ArgumentParser("csresolver.py",add_help=False) > parser.add_argument("-h","--help", > help="USAGE: <STDIN> | myscript.py [-exf Exception File]") > parser.add_argument("-e","--ext", type=str, > help="Exception file") > args = parser.parse_args() Just a guess- put "h","--help" in () >
- Previous message (by thread): argparse
- Next message (by thread): argparse
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list