title: How can I specify that some command line arguments are mandatory in Python?
body: <p>I'm writing a program in Python that accepts command line arguments.  I am parsing them with <code>getopt</code> (though my choice of <code>getopt</code> is no Catholic marriage.  I'm more than willing to use any other library).  Is there any way to specify that certain arguments <em>must</em> be given, or do I have to manually make sure that all the arguments were given?</p>
  
  <p><strong>Edit:</strong> I changed all instances of <em>option</em> to <em>argument</em> in response to public outcry.  Let it not be said that I am not responsive to people who help me :-)</p>