Using optparse

loial jldunn2000 at googlemail.com
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 --
PARAM2






More information about the Python-list mailing list