title: Passing a string with an argument using argparse
body: <p>I have been reading about the <code>argparse</code> module in Python and also did a bit of research but could not find a clean technique to pass a string through an argument. </p>
  
  <p>Basically I would like to have this working:</p>
  
  <pre><code>myProg -a=FOO
  </code></pre>
  
  <p>and then be able to sample the string <code>"FOO"</code>.</p>
  
  <p>I kind of got it working, but <code>myProg -a+FOO</code>  would pass <code>"+FOO"</code> into the arguments namespace. I can probably do a secondary check, but just wondering if there is a proper way to do this, to limit the argument format to <code>-a=</code> and catch anything else as an error.</p>