471,325 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,325 software developers and data experts.

Problem with argument parsing

I have a python-script: myscript, used to start a program on another
computer and I use OptionParser in optpars.
I use it like this: myscript -H host arg1 -x -y zzz
I would like OptionParser to ignore all arguments after arg1, because
these are options that should be used by the program started on the
oter computer arg1 -x -y zzz.
One solution is to write: myscript -H host "arg1 -x -y zzz"
But is it in some way possible to instruct OptionParser to ignore -x -
y zzz without the "..."?

Oct 9 '07 #1
0 931

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Bob Bedford | last post: by
33 posts views Thread by abs | last post: by
6 posts views Thread by Ulrich Vollenbruch | last post: by
14 posts views Thread by m | last post: by
64 posts views Thread by Morgan Cheng | last post: by
8 posts views Thread by Manju | last post: by
1 post views Thread by bryan rasmussen | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.