Re: sys.argv is munging my command line options

2007-08-29 Thread Arnau Sanchez
Chris Allen escribió: > action key=value key=value... > > Where action is a required string (ie. 'backup', 'init', 'restore', > etc) and the program can accept one or more key value pairs. I know > this syntax isn't standard, but I think it works great for my program > as each key can override a

Re: sys.argv is munging my command line options

2007-08-29 Thread Chris Allen
Thanks for the reply. Oops... I forget that I was calling the program from a shell script, the shell script was responsible for goofing up my command line options. Solved. Thanks again. On Aug 29, 12:28 pm, Ant <[EMAIL PROTECTED]> wrote: > On Aug 29, 8:11 pm, Chris Allen <[EMAIL PROTECTED]> wr

Re: sys.argv is munging my command line options

2007-08-29 Thread Ant
On Aug 29, 8:11 pm, Chris Allen <[EMAIL PROTECTED]> wrote: ... > But I'm running into a problem with this which is that sys.argv splits > my key=value options. I need to know the option associations, and > there's no way to know this by inspecting sys.argv. Can I get access > to the command line

sys.argv is munging my command line options

2007-08-29 Thread Chris Allen
The command line syntax for my program is as follows: action key=value key=value... Where action is a required string (ie. 'backup', 'init', 'restore', etc) and the program can accept one or more key value pairs. I know this syntax isn't standard, but I think it works great for my program as eac