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.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, after basic validation.
-
-
-
Method Detail
-
requiresParameter
default boolean requiresParameter()
Determines if this option requires a parameter.- Returns:
true
if this option requires a parameter (false
by 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,null
otherwise.
-
-