- create
Create an Option using the current settings and with the specified Option char.
- withDescription
The next Option created will have the specified description
- withArgName
The next Option created will have the specified argument value name.
- hasArg
The next Option created will require an argument value ifhasArg is true.
- withLongOpt
The next Option created will have the following long option value.
- hasArgs
The next Option created can have num argument values.
- isRequired
The next Option created will be required if required is true.
- withValueSeparator
The next Option created uses sep as a means to separate argument values.Example:
Option opt = Optio
- hasOptionalArg
The next Option can have an optional argument.
- withType
The next Option created will have a value that will be an instance of type.
- hasOptionalArgs
The next Option can have the specified number of optional arguments.
- reset
Resets the member variables to their default values.