summaryrefslogtreecommitdiff
path: root/BJC-Utils2/src/main/java/bjc/utils/cli/CLICommander.java
diff options
context:
space:
mode:
authorbculkin2442 <bjculkin@mix.wvu.edu>2016-04-25 22:11:28 -0400
committerbculkin2442 <bjculkin@mix.wvu.edu>2016-04-25 22:11:28 -0400
commitfb7d03388e298258563c22abda1bd46cdaf991b7 (patch)
treeff2caeda751acd733ea00c089800ff380211f0b3 /BJC-Utils2/src/main/java/bjc/utils/cli/CLICommander.java
parent42f7d379a430aaf2fad169f0170de04072b08b10 (diff)
General code cleanup, and some more GUI controls
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/cli/CLICommander.java')
-rw-r--r--BJC-Utils2/src/main/java/bjc/utils/cli/CLICommander.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/BJC-Utils2/src/main/java/bjc/utils/cli/CLICommander.java b/BJC-Utils2/src/main/java/bjc/utils/cli/CLICommander.java
index 09d3da7..e1a57c2 100644
--- a/BJC-Utils2/src/main/java/bjc/utils/cli/CLICommander.java
+++ b/BJC-Utils2/src/main/java/bjc/utils/cli/CLICommander.java
@@ -67,10 +67,10 @@ public class CLICommander {
normalOutput.print(currentMode.getName() + ">> ");
}
- String ln = inputSource.nextLine();
+ String currentLine = inputSource.nextLine();
- if (currentMode.canHandleCommand(ln)) {
- String[] commandTokens = ln.split(" ");
+ if (currentMode.canHandleCommand(currentLine)) {
+ String[] commandTokens = currentLine.split(" ");
String[] commandArgs;
@@ -84,7 +84,8 @@ public class CLICommander {
currentMode = currentMode.processCommand(commandTokens[0],
commandArgs);
} else {
- errorOutput.print("Error: Unrecognized command " + ln);
+ errorOutput.print(
+ "Error: Unrecognized command " + currentLine);
}
}
@@ -105,4 +106,4 @@ public class CLICommander {
this.initialMode = initialMode;
}
-}
+} \ No newline at end of file