title: Processing multiple values for one single option using getopt/optparse?
body: <p>Is it possible to fetch multiple values for one option using getopt or optparse, as shown in the example below:</p>
  
  <pre><code>./hello_world -c arg1 arg2 arg3 -b arg4 arg5 arg6 arg7
  </code></pre>
  
  <p>Please note that the number of actual values for each option (-c, -b) could be either 1 or 100. I do not want to use:
  <code>./hello_world -c "arg1 arg2 arg3" -b "arg4 arg5 arg6 arg7"</code></p>
  
  <p>It seems to me that this may not be possible (and perhaps in violation of POSIX), please correct me if I'm wrong.</p>
  
  <p>I've seen examples where all the non-options at the end of the line (<code>./hello_world -c arg1 -b arg1 arg2 arg3</code>) can be gathered... but not for the first of multiple option.</p>
  
  <p>I'd like my app to work on a wide range of platforms with different Python versions, so I've not looked at argparser.</p>