[Python-Dev] PEP 389: argparse - new command line parsing module
Barry Warsaw
barry at python.org
Wed Sep 30 01:39:16 CEST 2009
More information about the Python-Dev mailing list
Wed Sep 30 01:39:16 CEST 2009
- Previous message: [Python-Dev] PEP 389: argparse - new command line parsing module
- Next message: [Python-Dev] PEP 389: argparse - new command line parsing module
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sep 29, 2009, at 6:51 PM, Greg Ewing wrote: > skip at pobox.com wrote: >> I have never completely wrapped my brain around optparse. Getopt I >> just remember. > > Seems to me that optparse and argparse are fairly similar > in their APIs, and that argparse isn't going to be significantly > easier to fit in one's brain than optparse. There's no question it is if you're doing more complicated stuff, like extending it or using subcommands. After I converted my code from optparse to argparse, I ended up with less stuff that was more regular and easier to understand. It convinced me that argparse is a win. -Barry -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 832 bytes Desc: This is a digitally signed message part URL: <http://mail.python.org/pipermail/python-dev/attachments/20090929/8c05d48c/attachment.pgp>
- Previous message: [Python-Dev] PEP 389: argparse - new command line parsing module
- Next message: [Python-Dev] PEP 389: argparse - new command line parsing module
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list