title: How to provide mass-arguments to getopts in bash?
body: <p>I'm looking for a recipe to provide a list of space-delimited IP addresses as named optional parameter to bash script. I'd like to get next functionality:</p>
  
  <pre><code>./bootstrap.sh -bx -c 192.168.1.1 192.168.1.2
  </code></pre>
  
  <p>Here <code>b</code> and <code>x</code> are some optional parameters and <code>-c</code> is supposed to get a list of IP addresses as parameter. I use <code>getops</code> to deal with parameters and for now I provide this parameter as comma-delimited string:</p>
  
  <pre><code>./bootstrap.sh -bx -c192.168.1.1,192.168.1.2
  </code></pre>
  
  <p>It works well, but looks ugly and non-intuitive for users. 
  Any help appreciated.</p>