In article <b0195ff6-7dc1-42eb-819c-5b5b5a9bb...@g1g2000yqh.googlegroups.com>, loial <jldunn2...@googlemail.com> wrote: > >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?
You might try using shlex instead. -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." --Red Adair -- http://mail.python.org/mailman/listinfo/python-list