Package org.openstreetmap.josm.tools
Interface OptionParser.AvailableOption
-
- Enclosing class:
- OptionParser
protected static interface OptionParser.AvailableOption
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default OptionParser.OptionCountgetRequiredCount()Determines how often this option may / must be specified on the command line.default booleanrequiresParameter()Determines if this option requires a parameter.voidrunFor(java.lang.String parameter)Called once if the parameter is encountered, after basic validation.
-
-
-
Method Detail
-
requiresParameter
default boolean requiresParameter()
Determines if this option requires a parameter.- Returns:
trueif this option requires a parameter (falseby default)
-
getRequiredCount
default OptionParser.OptionCount getRequiredCount()
Determines how often this option may / must be specified on the command line.- Returns:
- how often this option may / must be specified on the command line
-
runFor
void runFor(java.lang.String parameter)
Called once if the parameter is encountered, after basic validation.- Parameters:
parameter- The parameter ifrequiresParameter()is true,nullotherwise.
-
-