argument problem in optparse

Qian Xu quian.xu at stud.tu-ilmenau.de
Fri Mar 20 17:44:32 CET 2009


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



More information about the Python-list mailing list