getopt, i don't get it

Josef Meile jmeile at hotmail.com
Wed Oct 29 15:53:33 EST 2003
> If you haven't used getopt before, don't start now. Check out optparse
> instead.
Thanks for the tip, I have already wrote something with getopt, but I found
that the "add_option" of the optparse is cleaner and easier to read than the
list of options that you use with getopt. Other thing I liked is that you
don't
have to write a method to print the help, you just pass a descriptive text
to the parser and it will do the rest.

Really nice :-). I will try it.

Regards,
Josef






More information about the Python-list mailing list