title: How to make argparse treat all arguments as positional?
body: <p>How can I make an <a href="https://docs.python.org/3/library/argparse.html" rel="nofollow noreferrer">argparse</a> parser treat all arguments as <em>positional</em>, even the ones that look like options? For example, with this definition:</p>
  <pre><code>parser.add_argument('cmd', nargs='*', help='The command to run')
  </code></pre>
  <p>I want to be able to run</p>
  <pre><code>prog.py mycomand --foo arg
  </code></pre>
  <p>and have <code>['mycomand', '--foo', 'arg']</code> be captured as the <code>cmd</code> argument.</p>