JOpt Simple 3.0-beta1 (Default branch)

JOpt Simple is a simple, test-driven command line parser for Java programs. It supports POSIX getopt() and GNU getopt_long(). License: MIT/X Consortium License Changes:
This version supports Java 5 and greater only. If you need to use JOpt Simple in a pre-Java-5 environment, use the latest 2.x release. Where appropriate, existing API calls have been updated to use Java generics. The OptionSpec interface was extracted and surfaced. OptionSpecs returned by the fluent interface methods can be used to retrieve arguments of the options they represent in a type-safe manner. All previously deprecated methods were removed. Methods were added to OptionSet to allow detection of options and retrieval of option arguments using instances of OptionSpec.

More...