blanks embedded in python 2.3 optparse

pascal barbedor pascalbarbedor at free.fr
Tue Jul 29 03:44:11 EDT 2003


Hi

is there a way to pass a param with blank embedded with optparse ?
(C:\Python23\Doc\lib\module-optparse.html)


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

thanks








More information about the Python-list mailing list