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 ... > > > Best regards > --Qian Xu > -- > http://mail.python.org/mailman/listinfo/python-list
Also check out argparse. -- http://mail.python.org/mailman/listinfo/python-list