[Python-Dev] PEP 389: argparse - new command line parsing module
barry at python.org
Wed Sep 30 01:39:16 CEST 2009
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 832 bytes
Desc: This is a digitally signed message part
More information about the Python-Dev