[Python-Dev] Python 2.7b1 and argparse's version action (original) (raw)
Eric Smith eric at trueblade.com
Mon Apr 19 01:30:07 CEST 2010
- Previous message: [Python-Dev] Python 2.7b1 and argparse's version action
- Next message: [Python-Dev] Python 2.7b1 and argparse's version action
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Steven Bethard wrote:
By the way, we could simplify the typical addargument usage by adding "show program's version number and exit" as the default help for the 'version' action. Then you should just write:
parser.addargument('--version', action='version', version='')
I like this the best. I don't like argparse adding arguments for me.
Eric.
- Previous message: [Python-Dev] Python 2.7b1 and argparse's version action
- Next message: [Python-Dev] Python 2.7b1 and argparse's version action
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]