Using optparse

loial jldunn2000 at
Thu Apr 23 13:45:18 CEST 2009

A shell script is passing parameters to my python script in the
following format

-PARAM1 12345 -PARAM2 67890

Can I parse these with optparse  ? If so how?

I can't seem to get it to work. It seems to expect --PARAM1 and --

More information about the Python-list mailing list