From bc17bf7cbecf9c15a9e7b0bbf72e4dd07fb958ce Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 23 Aug 2014 14:59:57 -0400 Subject: [PATCH] Parser - ::findCommand needs to scan all nodes, to find an existing CMD. --- src/Parser.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Parser.cpp b/src/Parser.cpp index a9fb9aac0..dca7f77ed 100644 --- a/src/Parser.cpp +++ b/src/Parser.cpp @@ -444,9 +444,8 @@ void Parser::resolveAliases () // autoCompletes to a valid command/report. void Parser::findCommand () { - context.debug ("Parse::findCommand"); std::vector nodes; - collect (nodes); + collect (nodes, collectAll); // There can be only one. // Scan for an existing CMD tag, to short-circuit scanning for another. @@ -474,8 +473,6 @@ void Parser::findCommand () return; } } - - context.debug (_tree->dump ()); } ////////////////////////////////////////////////////////////////////////////////