When parsing nodes, return the deepest node we went into
This commit is contained in:
@@ -16,5 +16,5 @@ public abstract class CommandNode {
|
||||
children.add(node);
|
||||
}
|
||||
|
||||
public abstract void parse(String command) throws IllegalCommandArgumentException;
|
||||
public abstract CommandNode parse(String command) throws IllegalCommandArgumentException;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user