title: Accept a range of numbers in the form of 0-5 using Python's argparse?
body: <p>Using argparse, is there a way to accept a range of numbers and convert them into a list?</p>
  
  <p>For example:</p>
  
  <pre><code>python example.py --range 0-5
  </code></pre>
  
  <p>Is there some way input a command line argument in that form and end up with:</p>
  
  <pre><code>args.range = [0,1,2,3,4,5]
  </code></pre>
  
  <p>And also have the possibility to input <code>--range 2 = [2]</code>?</p>