optparse option prefix

Mathias Waack M.Waack at gmx.de
Wed Apr 4 08:25:06 EDT 2007


Diez B. Roggisch wrote:
>> (3) Create a filter module that reads sys.argv, replaces leading "+"
>> signs with "-" signs, and then stuffs it back into sys.argv before
>> optparse gets to see it.
> 
> That's not even necessary, the optparser will work on a passed argument
> list. No need to alter sys.argv.

Sounds nice, I'll do so. Thanks!

Mathias



More information about the Python-list mailing list