optparse - required options

Robert Dailey rcdailey at gmail.com
Mon Aug 20 15:51:02 EDT 2007


Hi,

I've been reading through the python documentation on the optparse module
and I was unable to find out how to specify if an option is optional or
required. The documentation vaguely states that actions can be used to do
this, however I was not able to figure out how. If anyone could help I'd
greatly appreciate it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070820/64ab9e4d/attachment.html>


More information about the Python-list mailing list