public interface CmdLinePrinter
String representation
of help, validation errors, and missing required options errors.| Modifier and Type | Method and Description |
|---|---|
String |
printActionHelp(CmdLineAction action,
Set<CmdLineOption> options)
Should generate help message for action specified by
.
|
String |
printActionMessages(List<String> messages)
Generates
CmdLineAction message from list of messages. |
String |
printActionsHelp(Set<CmdLineAction> actions)
Generates help messages given
CmdLineActions. |
String |
printOptionsHelp(Set<CmdLineOption> options)
Generates help message for given
CmdLineOptions. |
String |
printOptionValidationErrors(List<CmdLineOptionValidator.Result> results)
Generate validation error message for results of failed validations.
|
String |
printRequiredOptionsMissingError(Set<CmdLineOption> missingOptions)
Generates missing required options error message from given
CmdLineOptions which where required and not specified. |
String printActionHelp(CmdLineAction action, Set<CmdLineOption> options)
action - CmdLineAction for which help will be generateoptions - Supported CmdLineOptionsString printActionsHelp(Set<CmdLineAction> actions)
CmdLineActions.actions - CmdLineActions to print help forCmdLineActionsString printOptionsHelp(Set<CmdLineOption> options)
CmdLineOptions.options - CmdLineOptions for which help message will be generatedCmdLineOptionsString printOptionValidationErrors(List<CmdLineOptionValidator.Result> results)
results - List of FAILed validationsString printRequiredOptionsMissingError(Set<CmdLineOption> missingOptions)
CmdLineOptions which where required and not specified.missingOptions - Set of CmdLineOptions which where required and
not set.String printActionMessages(List<String> messages)
CmdLineAction message from list of messages.messages - The messages from a CmdLineActionCopyright © 1999–2017 Apache OODT. All rights reserved.