[Tutor] Help regarding optparse

Kent Johnson kent37 at tds.net
Thu Apr 21 05:16:14 CEST 2005

Prasad Kotipalli wrote:
> Hello
>  I am a newbie to python, I have been working with getopt for parsing
> command line options, but i came to know that optparse module is more
> effecient. Can anyone suggest some ideas why it is powerful than
> getopt.

Another option I like is optionparse from this recipe:

To use optionparse you just write a usage string, optionparse will parse it to figure out what to do 
and return the options to you.


More information about the Tutor mailing list