title: How to vary the value of argument parser in a certain range?
body: <p>I am trying to run this piece of code. I want to assign different values to FLAGS.Ncolor as given is x. But when I run this code it is picking the default value of Ncolor that is 2.  </p>
  
  <pre><code>`p=argparse.ArgumentParser()
  passes to add_argument()
  p.add_argument('--Ncolor','-nc', default=2, type=int, help='Number of 
  colors')
  FLAGS=p.parse_args()
  x = [ i+1 for i in range(5)]
  for FLAGS.NCOLOR in x:
      print ("value is %d" % (FLAGS.Ncolor))`
  </code></pre>