title: Passing integer lists to python
body: <p>I want to pass 2 lists of integers as input to a python program.  </p>
  
  <p>For e.g, (from command line)</p>
  
  <pre><code>python test.py --a 1 2 3 4 5 -b 1 2  
  </code></pre>
  
  <p>The integers in this list can range from 1-50, List 2 is subset of List1.<br>
  Any help/suggestions ? Is <code>argparse</code> the right module ? Any concerns in using that ?</p>
  
  <p>I have tried :</p>
  
  <pre><code>import argparse
  if __name__ == '__main__':
      parser = argparse.ArgumentParser()
      parser.add_argument('--a', help='Enter list 1 ')
      parser.add_argument('--b', help='Enter list 2 ')
      args = parser.parse_args()
      print (args.a)
  </code></pre>