title: Can I pass an object into argparse.add_argument?
body: <p>Instead of having a bunch of literals scattered across calls to <code>add_argument</code>, like so:  </p>
  
  <pre><code>parser.add_argument('--foo',
                      required=False,
                      metavar='bar',
                      type=str,
                      help='help message',
                      default='default')
  
  parser.add_argument('--foo2',
                      required=False,
                      metavar='bar2',
                      type=str,
                      help='help message',
                      default='default')
  </code></pre>
  
  <p>I was hoping I could create a container first, and then add all the arguments in a loop.<br>
  Something like this:  </p>
  
  <pre><code>for arg in argument_container:
      parser.add_argument(arg)
  </code></pre>
  
  <p>I'm not familiar enough with how python is accepting these parameters to understand if they can be abstracted out into some kind of object literal like I want.  </p>
  
  <p>Is there a way to abstract out all the parameters into a container first, and then add all the arguments at once through a loop as shown above?</p>