Popular recipes by Alec Wysoker http://code.activestate.com/recipes/users/4154858/2008-06-24T13:26:18-07:00ActiveState Code RecipesExtended optparse to allow definition of required options. (Python)
2008-06-24T13:26:18-07:00Alec Wysokerhttp://code.activestate.com/recipes/users/4154858/http://code.activestate.com/recipes/573441-extended-optparse-to-allow-definition-of-required-/
<p style="color: grey">
Python
recipe 573441
by <a href="/recipes/users/4154858/">Alec Wysoker</a>
.
Revision 4.
</p>
<p>Add "required" keyword to optparse.OptionParser.add_option()</p>