From 399097d683996445cb3e4a3fbf3c53fdff8253be Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 31 Oct 2014 20:01:33 -0400 Subject: [PATCH] CLI - Added debug.parser=3 support to ::findOperators. --- src/CLI.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/CLI.cpp b/src/CLI.cpp index a035b9c11..224f2134f 100644 --- a/src/CLI.cpp +++ b/src/CLI.cpp @@ -1496,11 +1496,19 @@ void CLI::findOperators () options.push_back (e->second); // Walk the arguments and tag as OP. + bool changes = false; std::vector ::iterator a; for (a = _args.begin (); a != _args.end (); ++a) if (a->hasTag ("FILTER")) if (std::find (options.begin (), options.end (), a->attribute ("raw")) != options.end ()) + { a->tag ("OP"); + changes = true; + } + + if (changes && + context.config.getInteger ("debug.parser") >= 3) + context.debug (context.cli.dump ("CLI::analyze findOperators")); } ////////////////////////////////////////////////////////////////////////////////