minor fixes

This commit is contained in:
Jonathan Shook 2024-01-31 09:05:45 -06:00
parent 7e155200c5
commit 795d63aa63
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ public abstract class NBBaseCommand extends NBInvokableCommand {
@Override
public String toString() {
return "SCENARIO (" + this.getClass().getSuperclass().getSimpleName() + ") { scenarioName: " + getScenarioName() + " }";
return "CMD (" + this.getClass().getSimpleName();
}
public abstract Object invoke(

View File

@ -51,7 +51,7 @@ public class CmdParser {
LinkedList<Record> cmdstructs = new LinkedList<>();
LinkedList<Cmd> cmds = new LinkedList<>();
while (args.size()>0) {
while (!args.isEmpty()) {
String arg=args.peekFirst();
Matcher matcher = combinedPattern.matcher(arg);
if (matcher.matches()) {