public interface BasicOptions
Modifier and Type | Method and Description |
---|---|
String |
getCommandDescription()
Used to generate CLI usage help.
|
List<CommandHook> |
getCommandHooks() |
String |
getCommandName()
Used to generate the command line interface and its usage help.
|
boolean |
getDebug()
Whether to enable debug mode.
|
boolean |
getErrors()
Whether to display full information about errors (ie exception stack
traces).
|
boolean |
getHelp()
Whether to display the command's usage help.
|
boolean |
getQuiet()
Enable quiet mode - error messages only
|
ZanataCommand |
initCommand() |
boolean |
isDebugSet() |
boolean |
isErrorsSet() |
boolean |
isInteractiveMode() |
boolean |
isQuietSet() |
void |
setCommandHooks(List<CommandHook> commandHooks) |
void |
setDebug(boolean debug) |
void |
setErrors(boolean errors) |
void |
setHelp(boolean help) |
void |
setInteractiveMode(boolean interactiveMode) |
void |
setQuiet(boolean quiet) |
ZanataCommand initCommand()
boolean getDebug()
void setDebug(boolean debug)
boolean isDebugSet()
boolean getErrors()
void setErrors(boolean errors)
boolean isErrorsSet()
boolean getHelp()
void setHelp(boolean help)
boolean getQuiet()
void setQuiet(boolean quiet)
boolean isQuietSet()
boolean isInteractiveMode()
void setInteractiveMode(boolean interactiveMode)
String getCommandName()
String getCommandDescription()
@Nonnull List<CommandHook> getCommandHooks()
void setCommandHooks(@Nonnull List<CommandHook> commandHooks)
Copyright © 2017 Zanata Project. All rights reserved.