title: How to make a short and long version of a required argument using Python Argparse?
body: <p>I want to specify a required argument called <code>inputdir</code> but I also would like to have a shorthand version of it called <code>i</code>. I don't see a concise solution to do this without making both optional arguments and then doing my own check. Is there a preferred practice for this that I'm not seeing or the only way is to make both optional and do my own error-handling?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>import argparse
  parser = argparse.ArgumentParser()
  parser.add_argument("inputdir", help="Specify the input directory")
  parser.parse_args()
  </code></pre>