Modules & positive surprises

Steven Bethard steven.bethard at gmail.com
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.

<plug>
If you like optparse, you should try argparse:

     http://argparse.python-hosting.com/

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...
</plug>


STeVe



More information about the Python-list mailing list