getopt, i don't get it

Mel Wilson mwilson at the-wire.com
Wed Oct 29 13:23:37 EST 2003


In article <62e9c66e.0310281136.2248099b at posting.google.com>,
dokaspar at student.ethz.ch (Dominik Kaspar) wrote:
>I tried to use getopt and copied the example from:
>http://www.python.org/doc/current/lib/module-getopt.html
>
>but nothing is working... getopt.GetoptError doesn't seem to exist and
>when i run the program commenting this out, none of "-v", "-h" and
>"-o" wants to be recognized... what's the matter?!

The code looks OK, so it's debugging time.  What are the symptoms?
What makes you think the options aren't being recogized?
What's the command-line you're inputting?

        Regards.        Mel.




More information about the Python-list mailing list