public class StdCmdLinePrinter extends Object implements CmdLinePrinter
CmdLinePrinter.| Constructor and Description |
|---|
StdCmdLinePrinter() |
public String printActionHelp(CmdLineAction action, Set<CmdLineOption> options)
CmdLinePrinterprintActionHelp in interface CmdLinePrinteraction - CmdLineAction for which help will be generateoptions - Supported CmdLineOptionsprotected String getHeader(CmdLineAction action)
protected String getDescription(CmdLineAction action)
protected String getUsage(CmdLineAction action, Set<CmdLineOption> options)
protected String getRequiredSubHeader()
protected String getRequiredOptionHelp(CmdLineAction action, CmdLineOption option)
protected String getOptionalSubHeader()
protected String getOptionalOptionHelp(CmdLineAction action, CmdLineOption option)
protected String getExamples(CmdLineAction action)
protected String getFooter(CmdLineAction action)
protected String getOptionHelp(CmdLineAction action, CmdLineOption option, String indent)
protected String getGroupHelp(CmdLineAction action, GroupCmdLineOption option, String indent)
public String printActionsHelp(Set<CmdLineAction> actions)
CmdLinePrinterCmdLineActions.printActionsHelp in interface CmdLinePrinteractions - CmdLineActions to print help forCmdLineActionspublic String printOptionsHelp(Set<CmdLineOption> options)
CmdLinePrinterCmdLineOptions.printOptionsHelp in interface CmdLinePrinteroptions - CmdLineOptions for which help message will be generatedCmdLineOptionsprotected String getHeader()
protected String getOptionHelp(CmdLineOption option, String indent)
protected String getFooter()
public String printOptionValidationErrors(List<CmdLineOptionValidator.Result> results)
CmdLinePrinterprintOptionValidationErrors in interface CmdLinePrinterresults - List of FAILed validationspublic String printRequiredOptionsMissingError(Set<CmdLineOption> missingOptions)
CmdLinePrinterCmdLineOptions which where required and not specified.printRequiredOptionsMissingError in interface CmdLinePrintermissingOptions - Set of CmdLineOptions which where required and
not set.public String printActionMessages(List<String> messages)
CmdLinePrinterCmdLineAction message from list of messages.printActionMessages in interface CmdLinePrintermessages - The messages from a CmdLineActionCopyright © 1999–2017 Apache OODT. All rights reserved.