options is a Java toolkit for parsing command line options. It focuses on ease-of-use. It uses annotations to declare valid options and takes care not to intrude on your class structure. It adheres to the GNU getopt style of options.

Shorts, floats, doubles, and Class:es can now be annotated with @Option. Annotated variables can have any access classification.

net.windwards options – Freecode