public static class BaseExecutor.DefaultImpls
Base executor interface that specifies the execute() method and various helper methods
Modifier and Type | Method and Description |
---|---|
static boolean |
getUserConfirmation(BaseExecutor $this,
java.lang.String message)
Prompts a yes/no question to the user
Takes the cliConfirm flag in the Config into consideration.
|
static net.sourceforge.argparse4j.inf.Namespace |
handleParserError(BaseExecutor $this,
net.sourceforge.argparse4j.inf.ArgumentParser parser,
java.lang.String[] args)
Handles a parser error. On error, a helpful message will be output and the program will exit.
|
public static net.sourceforge.argparse4j.inf.Namespace handleParserError(BaseExecutor $this, net.sourceforge.argparse4j.inf.ArgumentParser parser, java.lang.String[] args)
Handles a parser error. On error, a helpful message will be output and the program will exit.
parser
- : The parser to useargs
- : The command line arguments to parsepublic static boolean getUserConfirmation(BaseExecutor $this, java.lang.String message)
Prompts a yes/no question to the user Takes the cliConfirm flag in the Config into consideration.
message
- : The message to show the user