public static interface CommandLine.INegatableOptionTransformer
Additionally, this transformer controls which names of a negatable option are actually negatable:
for example, by default short options like -v do not have a negative form, even if the same option's
long form, --verbose, may have a negative form, --no-verbose.
CommandLine.RegexTransformer| Modifier and Type | Method and Description |
|---|---|
String |
makeNegative(String optionName,
CommandLine.Model.CommandSpec cmd)
Returns the negative form of the specified option name for the parser to recognize when parsing command line arguments.
|
String |
makeSynopsis(String optionName,
CommandLine.Model.CommandSpec cmd)
Returns the documentation string to show in the synopsis and usage help message for the specified option.
|
String makeNegative(String optionName, CommandLine.Model.CommandSpec cmd)
optionName - the option name to create a negative form for, for example --forcecmd - the command that the option is part of--no-forceString makeSynopsis(String optionName, CommandLine.Model.CommandSpec cmd)
optionName - the option name to create a documentation string for, for example --force, or -XX:+<option>cmd - the command that the option is part of--[no-]force, or -XX:(+|-)<option>