optional args for getopt()

bvdpoel at uniserve.com bvdpoel at uniserve.com
Thu Aug 23 04:59:21 CEST 2001

Is there a way to signal that the arg for getopt in optional. In C I can
set an option string to something like:

	opts = "hg:b::"

which means that 'g' needs an arg and that 'b' may have an arg. Seems
the python routine is lacking?? 

Bob van der Poel ** Wynndel, British Columbia, CANADA **
EMAIL: bvdpoel at uniserve.com
WWW:   http://users.uniserve.com/~bvdpoel

More information about the Python-list mailing list