Problem with argument parsing
lgwe
larsgwest at gmail.com
Tue Oct 9 10:34:02 EDT 2007
More information about the Python-list mailing list
Tue Oct 9 10:34:02 EDT 2007
- Previous message (by thread): Problem with argument parsing
- Next message (by thread): Problem with argument parsing
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 "..."?
- Previous message (by thread): Problem with argument parsing
- Next message (by thread): Problem with argument parsing
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list