Defining positional parameters with apache commons cli
<p>I would like to define an Apache Commons CLI parser that includes named arguments and positional arguments.</p>

<pre><code>program [-a optA] [-b optB] [-f] pos1 pos2
</code></pre>

<p>How do I validate pos1 and pos2?</p>