JOpt Simple is a Java library for parsing command line options, such as those you might pass to an invocation of javac.
As closely as possible, JOpt Simple attempts to honor the command line option syntaxes of POSIX getopt() and GNU getopt_long().