Class CLIProcessor.CallingContext
java.lang.Object
gov.nist.secauto.metaschema.cli.processor.CLIProcessor.CallingContext
- Enclosing class:
- CLIProcessor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGet the CLI syntax.protected StringCallback for providing a help header.protected List<org.apache.commons.cli.Option>handleInvalidCommand(String message) protected ExitStatusinvokeCommand(org.apache.commons.cli.CommandLine cmdLine) voidshowHelp()protected org.apache.commons.cli.Options
-
Constructor Details
-
CallingContext
-
-
Method Details
-
getCLIProcessor
-
getTargetCommand
-
getOptionsList
-
getExtraArgs
-
toOptions
protected org.apache.commons.cli.Options toOptions() -
processCommand
-
invokeCommand
-
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
public void showHelp()
-