protected static interface OptionParser.AvailableOption
Modifier and Type | Method and Description |
---|---|
default OptionParser.OptionCount |
getRequiredCount()
Determines how often this option may / must be specified on the command line.
|
default boolean |
requiresParameter()
Determines if this option requires a parameter.
|
void |
runFor(java.lang.String parameter)
Called once if the parameter is encountered, afer basic validation.
|
default boolean requiresParameter()
true
if this option requires a parameter (false
by default)default OptionParser.OptionCount getRequiredCount()
void runFor(java.lang.String parameter)
parameter
- The parameter if requiresParameter()
is true, null
otherwise.