public class CliTool extends Object
| Constructor and Description |
|---|
CliTool(String
|
| Modifier and Type | Method and Description |
|---|---|
void |
printHelpAndExit()
Prints the help message and terminates the JVM with the specified exit code.
|
void |
printHelpAndExit(int exitCode)
Prints the help message and terminates the JVM with the specified exit code.
|
void |
printMessageAndHelpAndExit(int exitCode, String
Prints the specified message, followed by the help message and terminates the JVM with the specified exit code.
|
void |
printMessageAndHelpAndExit(String
Prints the specified message, followed by the help message and terminates the JVM with an exit code of 1.
|
void |
printMessagesAndHelpAndExit(int exitCode, String
Prints the specified messages, followed by the help message and terminates the JVM with the specified exit code.
|
void |
printMessagesAndHelpAndExit(String
Prints the specified messages, followed by the help message and terminates the JVM with an exit code of 1.
|
public void printHelpAndExit()
printHelpAndExit(int) with an exit code of 1.
public void printHelpAndExit(int exitCode)
exitCode - the exit code to use for
System.exit(int)
public void printMessageAndHelpAndExit(Stringmessage)
printMessageAndHelpAndExit(int, String) with an exit code of 1.
message - the line to print in front of the help message
public void printMessageAndHelpAndExit(int exitCode,
String message)
exitCode - the exit code to use for
System.exit(int)
message - the line to print in front of the help message
public void printMessagesAndHelpAndExit(String... messages)
printMessagesAndHelpAndExit(int, String...) with an exit code of 1.
messages - the lines to print in front of the help message
public void printMessagesAndHelpAndExit(int exitCode,
String... messages)
exitCode - the exit code to use for
System.exit(int)
messages - the lines to print in front of the help message