optparse option prefix

Diez B. Roggisch deets at nospam.web.de
Wed Apr 4 06:49:07 EDT 2007


> 
> (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.

Diez



More information about the Python-list mailing list