blanks embedded in python 2.3 optparse

pascal barbedor pascalbarbedor at
Tue Jul 29 09:44:11 CEST 2003


is there a way to pass a param with blank embedded with optparse ?

for instance
prog --name=mr jones

and have "mister jones" as a single entry for name ?

reading the docs I see nothing about that.

the only thing is the nargs to pass nargs at a time, but here you can't tell
in advance how many words in the name there is


More information about the Python-list mailing list