Class CLIProcessor.CallingContext
java.lang.Object
gov.nist.secauto.metaschema.cli.processor.CLIProcessor.CallingContext
- Enclosing class:
- CLIProcessor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
Get the CLI syntax.protected String
Callback for providing a help header.protected List<org.apache.commons.cli.Option>
handleError
(ExitStatus exitStatus, org.apache.commons.cli.CommandLine cmdLine, boolean showHelp) handleInvalidCommand
(String message) protected ExitStatus
invokeCommand
(org.apache.commons.cli.CommandLine cmdLine) void
showHelp()
Output the help text to the console.protected org.apache.commons.cli.Options
-
Constructor Details
-
CallingContext
-
-
Method Details
-
getCLIProcessor
-
getTargetCommand
-
getOptionsList
-
getExtraArgs
-
toOptions
-
processCommand
-
invokeCommand
-
handleError
@NonNull public ExitStatus handleError(@NonNull ExitStatus exitStatus, @NonNull org.apache.commons.cli.CommandLine cmdLine, boolean showHelp) -
handleInvalidCommand
-
buildHelpHeader
Callback for providing a help header.- Returns:
- the header or
null
-
buildHelpCliSyntax
Get the CLI syntax.- Returns:
- the CLI syntax to display in help output
-
showHelp
Output the help text to the console.
-