Re: argument problem in optparse

2009-03-21 Thread Qian Xu
John O'Hagan wrote: > action="callback", > callback=my_callback it works perfect. You made my day and thank you both ^^) -- http://mail.python.org/mailman/listinfo/python-list

Re: argument problem in optparse

2009-03-21 Thread Neal Becker
Qian Xu wrote: > Hi All, > > I have a problem with OptParse. > I want to define such an arugument. It can accept additional value or no > value. > > "myscript.py --unittest File1,File2" > "myscript.py --unittest" > > Is it possible in OptParse? I have tried several combination. But ... > > >

Re: argument problem in optparse

2009-03-20 Thread John O'Hagan
On Fri, 20 Mar 2009, Qian Xu wrote: > Hi All, > > I have a problem with OptParse. > I want to define such an arugument. It can accept additional value or no > value. > > "myscript.py --unittest File1,File2" > "myscript.py --unittest" > > Is it possible in OptParse? I have tried several combination.

Re: argument problem in optparse

2009-03-20 Thread John Machin
On Mar 21, 3:44 am, Qian Xu wrote: > Hi All, > > I have a problem with OptParse. > I want to define such an arugument. It can accept additional value or no > value. > > "myscript.py --unittest File1,File2" > "myscript.py --unittest" > > Is it possible in OptParse? I have tried several combination.

argument problem in optparse

2009-03-20 Thread Qian Xu
Hi All, I have a problem with OptParse. I want to define such an arugument. It can accept additional value or no value. "myscript.py --unittest File1,File2" "myscript.py --unittest" Is it possible in OptParse? I have tried several combination. But ... Best regards --Qian Xu -- http://mail.pyth