public abstract class CliTool extends Object implements Callable<ExitStatus>
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ARG_OVERWRITE |
protected static String |
ARG_VALIDATE |
| Constructor and Description |
|---|
CliTool() |
| Modifier and Type | Method and Description |
|---|---|
protected static <T> T |
checkNotNull(T arg) |
protected static void |
main(String[] args,
CliTool... commands)
Parse and execute one of the commands.
|
protected static void |
main(String[] args,
CliTool command)
Parse and execute a single command.
|
protected static void |
printf(String msg,
Object... args) |
void |
setCallSystemExit(boolean flag)
Call
System.exit(int) at the end of command processing. |
protected static final String ARG_OVERWRITE
protected static final String ARG_VALIDATE
public void setCallSystemExit(boolean flag)
System.exit(int) at the end of command processing.flag - Call System.exit(int) if true.protected static void main(String[] args, CliTool... commands)
args - Command line arguments (command and options).commands - A list of commands.protected static void main(String[] args, CliTool command)
args - Command line arguments (command and options).command - The command to execute.protected static <T> T checkNotNull(T arg)
Copyright © 2016. All rights reserved.