FIXED: Re: optparse multiple arguments

Ritesh Raj Sarraf riteshsarraf at
Fri Jun 30 06:33:43 EDT 2006

Simon Percivall wrote:
> It might do you good to read the documentation instead of blindly
> experimenting.
> Anyway,
> parser.add_option("", "--my-option", nargs=3)

That won't help because by design of my program, I can't limit the
number of arguments a user can pass to it.


More information about the Python-list mailing list