https://github.com/jankroken/commandline
The Apache Commons CLI library provides an API for parsing command line options passed to programs. It's also able to print help messages detailing the options available for a command line tool.
Commons CLI supports different types of options:
http://commons.apache.org/proper/commons-cli/
https://stackoverflow.com/questions/11704338/java-cli-commandlineparser