Modules & positive surprises

Steven Bethard steven.bethard at
Fri Mar 30 18:50:55 CEST 2007

Jan Danielsson wrote:
>    But then there are a few modules that I just love to use, because
> they are so "clean" from interface to function. Among them I can't help
> mentioning optparse.

If you like optparse, you should try argparse:

It has an optparse-style API, along with support for

* positional arguments
* sub-commands
* required options
* options with a variable number of args
* better usage messages
* a much simpler extension mechanism

and more...


More information about the Python-list mailing list