FIXED: Re: optparse multiple arguments
fredrik at pythonware.com
Fri Jun 30 05:12:56 EDT 2006
Ritesh Raj Sarraf wrote:
>> I guess I only need to figure out now is why args isn't storing
>> argument "a" also...
> I fixed it, I guess.
> parser.add_option("", "--my-option", dest="my_option",
> sets my_option to True and the arguments are all stored in the list
> "args". :-)
note that whatever action you're using, args holds the *remaining* arguments, after
More information about the Python-list