Thanks...it worked perfectly.
Brilliant!!
JL
Duncan Booth <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> John Leslie wrote:
>
> > I am porting a script from Korn Shell to python and want to pass named
> > parameters like -JOB 123456 -DIR mydir
> >
> > I can get it to work p
John Leslie wrote:
> I am porting a script from Korn Shell to python and want to pass named
> parameters like -JOB 123456 -DIR mydir
>
> I can get it to work passing --JOB and --DIR but not -JOB and -DIR
>
> Any ideas?
>
Unfortunately (for you), I think you will find most or all of the existing
I am porting a script from Korn Shell to python and want to pass named
parameters like -JOB 123456 -DIR mydir
I can get it to work passing --JOB and --DIR but not -JOB and -DIR
Any ideas?
Current code :
try:
options, xarguments = getopt.getopt(sys.argv[1:], '', ['JOB=',
'DIR=', 'ERR=', 'GRP