Package io.sbk.params
Interface ParsedOptions
- All Known Subinterfaces:
InputParameterOptions
,ParameterOptions
,ParseInputOptions
- All Known Implementing Classes:
SbkDriversParameters
,SbkInputOptions
,SbkParameters
,SbkYalParameters
public interface ParsedOptions
-
Method Summary
Modifier and TypeMethodDescriptionGet the -help output.getOptionValue
(String name) Retrieve the Option matching the parameter name specified.getOptionValue
(String name, String defaultValue) Retrieve the Option matching the parameter name specified.boolean
hasOptionValue
(String name) Returns whether the named Option has the value after parsing.default void
Print the -help output.
-
Method Details
-
hasOptionValue
Returns whether the named Option has the value after parsing.- Parameters:
name
- name of the parameter option- Returns:
- true if the named Option is a member of this Options
-
getOptionValue
Retrieve the Option matching the parameter name specified.- Parameters:
name
- Name of the parameter.- Returns:
- parameter value
-
getOptionValue
Retrieve the Option matching the parameter name specified.- Parameters:
name
- Name of the parameter.defaultValue
- default value if the parameter not found- Returns:
- parameter value
-
getHelpText
String getHelpText()Get the -help output.- Returns:
- formatted Help text
-
printHelp
default void printHelp()Print the -help output.
-