title: How to include code attribute in parse_arg?
body: <p>I have the following code:</p>
  <pre><code>import argparse
  
  parser = argparse.ArgumentParser(description = &quot;Gobblet game&quot;)
  parser.add_argument(&quot;code&quot;, metavar = &quot;CODE&quot;, type=str, help= &quot;Player code&quot;)
  parser.add_argument(&quot;-l&quot;, &quot;--lister&quot;, action=&quot;store_true&quot;, help= &quot;Lists existing games&quot;)
  attrib = parser.parse_args()
  </code></pre>
  <p>When I do print(attrib), an error prompt tells me that the the CODE argument is required. Where does this argument need to be placed in my code for this to create a Namespace of the player's code?</p>