title: How can I pass arguments like these for example: runType=EOD threadCnt=10 cleanLogs=true in my commandline java program?
body: <p>What is the best way to pass these arguments to a java commandline program. Currently, I have order dependent args that the user must remember. My program is called as below:</p>
  
  <p><code>CommandLineRunner EOD 10 true</code></p>
  
  <p>I want the user to be able to do this:</p>
  
  <p><code>CommandLineRunner runType=EOD threadCnt=10 cleanLogs=true</code></p>
  
  <p>Or change order of arguments.</p>
  
  <p><code>CommandLineRunner threadCnt=10 runType=EOD cleanLogs=true</code></p>
  
  <p>I would prefer not to use an external library for this but if there is a good one in java, please provide an example of how to use it to build my example. The <code>=</code> signs must be there since I need to make this program follow a standard for other python/ruby based cli applications we have in our organization.</p>
  
  <p>Thank you in advance.</p>