My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members

Handles processing of command line options for Java-based programs. The Option annotation is used to specify an option's long and short names, help message, and optional default value. When the Option annotation is used with a class or object field the field will be set to the value of the option as the command line is parsed. The declared type of the field determines the option argument type, either int, long, or String. A field type of boolean indicates an option without an argument and will be set to true if the option is present. An array or List type indicates an option which accepts multiple values.

In addition, the Program annotation can be used with a program's class to specify such information as program name, usage message, and whether a default help option should be included.

Powered by Google Project Hosting