public interface CLITool extends CLIToolLogger
Modifier and Type | Method and Description |
---|---|
void |
exit(int exitcode)
Calls the exit method
|
void |
help()
Writes help message to implementation specific output channel.
|
org.apache.commons.cli.CommandLine |
parseArgs(java.lang.String[] args)
Reads the argument vector and constructs a
CommandLine object containing params |
void |
run(java.lang.String[] args)
The run method carries out the lifecycle of the tool, parsing args, handling exceptions,
and exiting with a suitable exit code.
|
org.apache.commons.cli.CommandLine parseArgs(java.lang.String[] args) throws CLIToolOptionsException
CommandLine
object containing paramsargs
- the cli arg vectorCLIToolOptionsException
- parse errorvoid run(java.lang.String[] args) throws CLIToolException
args
- the cli arg vectorCLIToolException
- errorvoid exit(int exitcode)
exitcode
- return code to exit withvoid help()