- Only the first arg was being marked as ORIGINAL.
This commit is contained in:
Paul Beckingham 2014-11-09 12:27:01 -05:00
parent 008c7503b3
commit a07aa2bece

View file

@ -385,10 +385,10 @@ void CLI::analyze (bool parse /* = true */, bool strict /* = false */)
{
std::string raw = _original_args[i];
A a ("arg", raw);
a.tag ("ORIGINAL");
if (i == 0)
{
a.tag ("ORIGINAL");
a.tag ("BINARY");
std::string basename = "task";
@ -402,11 +402,6 @@ void CLI::analyze (bool parse /* = true */, bool strict /* = false */)
else if (basename == "task" || basename == "tw" || basename == "t")
a.tag ("TW");
}
else
{
A a ("arg", raw);
a.tag ("ORIGINAL");
}
_args.push_back (a);
}