TW-1656: Implicitly parenthesize argv filter

- Thanks to Daniel Shahaf.
This commit is contained in:
Paul Beckingham
2015-09-12 08:57:38 -04:00
parent c4d797539d
commit c59afe34c4
5 changed files with 118 additions and 22 deletions

View File

@@ -99,7 +99,14 @@ bool DOM::get (const std::string& name, Variant& value)
else if (name == "context.args")
{
std::string commandLine;
join (commandLine, " ", context.cli2._original_args);
for (auto& arg : context.cli2._original_args)
{
if (commandLine != "")
commandLine += " ";
commandLine += arg.attribute("raw");
}
value = Variant (commandLine);
return true;
}