CmdCustom

- Added parallel cli handling.
This commit is contained in:
Paul Beckingham 2014-10-14 01:36:20 -04:00
parent c79a09d0b8
commit 99ff5cd372

View file

@ -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 <std::string> filterArgs;
while (lex.token (lexeme, type))
{
filterArgs.push_back (lexeme);
context.cli.add (lexeme);
}
if (reportFilter != "")
context.cli.add (")");
std::vector <std::string>::reverse_iterator arg;
for (arg = filterArgs.rbegin (); arg != filterArgs.rend (); ++ arg)