Class CLIOption
-
Field Summary
Fields inherited from class UIOption
argumentType, name, option, optionCollection, PATTERN -
Constructor Summary
ConstructorsConstructorDescriptionCLIOption(UIOptionCollection<CLIOption> collection, org.apache.commons.cli.Option option) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcleanupName(org.apache.commons.cli.Option option) Provide means to wrap the given option depending on the UI-specific option implementation.Gets an example of how to use this option in the native UI.getText()return a string showing long and short options if they are available.Methods inherited from class UIOption
cleanup, getArgName, getArgType, getCasedName, getDefaultValue, getDeprecated, getDescription, getName, getOption, getOptionCollection, getType, hasArg, hasArgs, isDeprecated, isRequired, keyValue
-
Constructor Details
-
CLIOption
-
-
Method Details
-
getText
-
cleanupName
Description copied from class:UIOptionProvide means to wrap the given option depending on the UI-specific option implementation.- Specified by:
cleanupNamein classUIOption<CLIOption>- Parameters:
option- The CLI option- Returns:
- the cleaned up option name.
-
getExample
Description copied from class:UIOptionGets an example of how to use this option in the native UI.- Specified by:
getExamplein classUIOption<CLIOption>- Returns:
- An example of how to use this option in the native UI.
-