Class CLIOption
java.lang.Object
org.apache.rat.documentation.options.AbstractOption
org.apache.rat.documentation.options.CLIOption
-
Field Summary
Fields inherited from class org.apache.rat.documentation.options.AbstractOption
argumentType, name, option, PATTERN -
Constructor Summary
Constructors -
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.static StringcreateName(org.apache.commons.cli.Option option)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 org.apache.rat.documentation.options.AbstractOption
argCount, cleanup, cleanupName, getArgName, getArgType, getDefaultValue, getDeprecated, getDescription, getName, getOption, getType, hasArg, hasArgs, isDeprecated, isRequired, keyValue
-
Constructor Details
-
CLIOption
public CLIOption(org.apache.commons.cli.Option option)
-
-
Method Details
-
createName
-
getText
Description copied from class:AbstractOptionreturn a string showing long and short options if they are available. Will return a string.- Specified by:
getTextin classAbstractOption- Returns:
- A string showing long and short options if they are available. Never
null.
-
cleanupName
Description copied from class:AbstractOptionProvide means to wrap the given option depending on the UI-specific option implementation.- Specified by:
cleanupNamein classAbstractOption- Parameters:
option- The CLI option- Returns:
- the cleaned up option name.
-
getExample
Description copied from class:AbstractOptionGets an example of how to use this option in the native UI.- Specified by:
getExamplein classAbstractOption- Returns:
- An example of how to use this option in the native UI.
-