title: creating an array from a command line option (python::optparse)
body: <p>There is a python script which reads a benchmark name from command line like this:</p>
  
  <pre><code>-b benchname1
  </code></pre>
  
  <p>The code for this perpose is:</p>
  
  <pre><code>import optparse
  import Mybench
  parser = optparse.OptionParser()
  # Benchmark options
  parser.add_option("-b", "--benchmark", default="", help="The benchmark to be loaded.")
  if options.benchmark == 'benchname1':
    process = Mybench.b1
  elif options.benchmark == 'benchname2':
    process = Mybench.b2
  else:
    print "no such benchmark!"
  </code></pre>
  
  <p>what I want to do is to create a an array of benchmarks for this command line:</p>
  
  <pre><code>-b benchname1 benchname2
  </code></pre>
  
  <p>So the "process" should be an array that is:</p>
  
  <pre><code>process[0] = Mybench.b1
  process[1] = Mybench.b2
  </code></pre>
  
  <p>Is there any suggestion for that?</p>
  
  <p>Thanx</p>