Package org.openstreetmap.josm.tools
Interface OptionParser.AvailableOption
- Enclosing class:
- OptionParser
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptiondefault OptionParser.OptionCountDetermines how often this option may / must be specified on the command line.default booleanDetermines if this option requires a parameter.voidCalled once if the parameter is encountered, after basic validation.
-
Method Details
-
requiresParameter
Determines if this option requires a parameter.- Returns:
trueif this option requires a parameter (falseby default)
-
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
Called once if the parameter is encountered, after basic validation.- Parameters:
parameter- The parameter ifrequiresParameter()is true,nullotherwise.
-