title: "grep like" CLI using JCommander
body: <p>I'm trying <a href="http://jcommander.org/" rel="nofollow">JCommander</a> for the first time and I can't seem to adjust it to my needs.<br>
  I am trying to define a CLI similar in concept to that of the <code>grep</code> command:</p>
  
  <p><code>command [options] PATTERN [FILE ...]</code></p>
  
  <p>Usage example:</p>
  
  <p><code>command -debug "[A-Z]*" *.xml</code></p>
  
  <p>But, JCommander does not allow more than one "Main" parameter, so I cannot define both <code>PATTERN</code> and <code>FILE</code> as main parameters - which means I need to do something like:</p>
  
  <p><code>command -debug -p "[A-Z]*" *.xml</code> - meaning to include the pattern as an option (<code>-p "[A-Z]*"</code>)</p>
  
  <p>My question - is there a way around this, or should I consider another solution instead of JCommander?</p>