title: Can I create an option name with hyphens in apache commons cli?
body: <p>I am trying to set Option name with hyphens in it like "source-files" using the Apache Commons CLI java library.</p>
  
  <pre><code>Option option = new Option("source-files", true, "List of source files")
  </code></pre>
  
  <p>I get this error, </p>
  
  <pre><code>java.lang.IllegalArgumentException: opt contains illegal character value '-'
  at org.apache.commons.cli.OptionValidator.validateOption(OptionValidator.java:73)
  at org.apache.commons.cli.Option.&lt;init&gt;(Option.java:123)
  at org.apache.commons.cli.Option.&lt;init&gt;(Option.java:105)
  </code></pre>
  
  <p>Which means I cannot use an option name with a hyphen in it, which is the standard with unix commands. I noticed that <a href="http://commons.apache.org/proper/commons-cli/index.html" rel="noreferrer">Commons CLI</a> documentation mentions a hyphenated option name in one their examples. Am I missing something here?</p>