FIXED: Re: optparse multiple arguments

Ritesh Raj Sarraf riteshsarraf at gmail.com
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)
>
> http://docs.python.org/lib/optparse-standard-option-actions.html

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

Ritesh




More information about the Python-list mailing list