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
CmdLineAction s. |
String |
printOptionsHelp(Set<CmdLineOption> options)
Generates help message for given
CmdLineOption s. |
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
CmdLineOption s which where required and not specified. |
String printActionHelp(CmdLineAction action, Set<CmdLineOption> options)
action
- CmdLineAction
for which help will be generateoptions
- Supported CmdLineOption
sString printActionsHelp(Set<CmdLineAction> actions)
CmdLineAction
s.actions
- CmdLineAction
s to print help forCmdLineAction
sString printOptionsHelp(Set<CmdLineOption> options)
CmdLineOption
s.options
- CmdLineOption
s for which help message will be generatedCmdLineOption
sString printOptionValidationErrors(List<CmdLineOptionValidator.Result> results)
results
- List
of FAILed validationsString printRequiredOptionsMissingError(Set<CmdLineOption> missingOptions)
CmdLineOption
s which where required and not specified.missingOptions
- Set
of CmdLineOption
s which where required and
not set.String printActionMessages(List<String> messages)
CmdLineAction
message from list of messages.messages
- The messages from a CmdLineAction
Copyright © 1999–2017 Apache OODT. All rights reserved.