summaryrefslogtreecommitdiff
path: root/BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommand.java
diff options
context:
space:
mode:
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommand.java')
-rw-r--r--BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommand.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommand.java b/BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommand.java
index 7a38e9b..d6a72c9 100644
--- a/BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommand.java
+++ b/BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommand.java
@@ -9,8 +9,9 @@ package bjc.utils.cli;
public class GenericCommand implements ICommand {
// The behavior for invoking the command
private ICommandHandler handler;
+
// The help for the command
- private ICommandHelp help;
+ private ICommandHelp help;
/**
* Create a new generic command
@@ -22,11 +23,9 @@ public class GenericCommand implements ICommand {
* @param help
* The detailed help message for the command. May be null
*/
- public GenericCommand(ICommandHandler handler, String description,
- String help) {
+ public GenericCommand(ICommandHandler handler, String description, String help) {
if (handler == null) {
- throw new NullPointerException(
- "Command handler must not be null");
+ throw new NullPointerException("Command handler must not be null");
}
this.handler = handler;