title: How to fetch parameters when using the Apache Commons CLI library
body: <p>I'm using the Apache Commons CLI to handle command line arguments in Java.</p>
  
  <p>I've declared the <code>a</code> and <code>b</code> options and I'm able to access the value using <code>CommandLine.getOptionValue()</code>.</p>
  
  <pre><code>Usage: myapp [OPTION] [DIRECTORY]
  
  Options:
  -a        Option A
  -b        Option B
  </code></pre>
  
  <p>How do I declare and access the DIRECTORY variable?</p>