title: Parsing named cli arguments to java with a double dash
body: <p>I need to pass parameters to a java application with a double dash, like this:</p>
  
  <pre><code>java -cp "app.jar" package.App --parameter1=arg1 --parameter2=arg2
  </code></pre>
  
  <p>What is the easiest way to do this in Java?</p>
  
  <p>Thanks in advance!</p>
  
  <p><strong>-----------UPDATE---------</strong></p>
  
  <p>I'm trying to parse commands in a specific format, with a double dash and equals sign to assign value.</p>
  
  <p>My question is a simple and elegant way to do it with some parser. And I believe this question is still unanswered.</p>