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