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: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/278844

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.

Kent

_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to