Fork me on GitHub


Simple example

A simple example with one option:

Optional option

An example with an optional option

Alternative strategy for optional option

An example with an optional option

List example

Options can also have lists of values

Custom Types

Any class with a constructor that takes a single String can be used as an option type

Regular Expressions

Values can be automatically validated against a regular expression

Default Values

Options can have default values

Primitive Types

All primitive types, and there Object equivilents are supported

Usage Help

Automatic generation of usage help messages

rm example

An example definition of the unix "rm" tool's interface