From 99ff5cd372023a7cdc182c5034920cc0c1d475cc Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 14 Oct 2014 01:36:20 -0400 Subject: [PATCH] CmdCustom - Added parallel cli handling. --- src/commands/CmdCustom.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/commands/CmdCustom.cpp b/src/commands/CmdCustom.cpp index 964e49553..1db9bf765 100644 --- a/src/commands/CmdCustom.cpp +++ b/src/commands/CmdCustom.cpp @@ -90,6 +90,9 @@ int CmdCustom::execute (std::string& output) context.parser.captureLast (")"); */ + if (reportFilter != "") + context.cli.add ("("); + // Prepend the argument list with those from the report filter. std::string lexeme; Lexer::Type type; @@ -97,7 +100,13 @@ int CmdCustom::execute (std::string& output) lex.ambiguity (false); std::vector filterArgs; while (lex.token (lexeme, type)) + { filterArgs.push_back (lexeme); + context.cli.add (lexeme); + } + + if (reportFilter != "") + context.cli.add (")"); std::vector ::reverse_iterator arg; for (arg = filterArgs.rbegin (); arg != filterArgs.rend (); ++ arg)