title: Python argparse save argument into a variable
body: <p>Im trying to save the argparse argument into a variable.</p>
  <pre><code>import argparse
  parser = argparse.ArgumentParser()
     
  parser.add_argument('-n', dest='noww', action='store', help=&quot;shows noww&quot;)
  
  args = parser.parse_args()
  
  print(noww)
  
  </code></pre>
  <p>but its giving this error.</p>
  <pre><code> python c:/Users/rbhuv/Desktop/code/testing.py  -n sdad
  Traceback (most recent call last):
    File &quot;c:/Users/rbhuv/Desktop/code/testing.py&quot;, line 8, in &lt;module&gt;
      print(noww)
  NameError: name 'noww' is not defined
  </code></pre>