arity

Sets the arity (number of required values) for this option.

The option must consume exactly that many values from the command line. This is incompatible with requiresValue(false) since multi-value options always require values.

Return

ArityOptionBuilder for further configuration

Parameters

n

The number of values this option should consume (must be >= 2)