mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
CLI
- Only the first arg was being marked as ORIGINAL.
This commit is contained in:
parent
008c7503b3
commit
a07aa2bece
1 changed files with 1 additions and 6 deletions
|
@ -385,10 +385,10 @@ void CLI::analyze (bool parse /* = true */, bool strict /* = false */)
|
||||||
{
|
{
|
||||||
std::string raw = _original_args[i];
|
std::string raw = _original_args[i];
|
||||||
A a ("arg", raw);
|
A a ("arg", raw);
|
||||||
|
a.tag ("ORIGINAL");
|
||||||
|
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
{
|
{
|
||||||
a.tag ("ORIGINAL");
|
|
||||||
a.tag ("BINARY");
|
a.tag ("BINARY");
|
||||||
|
|
||||||
std::string basename = "task";
|
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")
|
else if (basename == "task" || basename == "tw" || basename == "t")
|
||||||
a.tag ("TW");
|
a.tag ("TW");
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
A a ("arg", raw);
|
|
||||||
a.tag ("ORIGINAL");
|
|
||||||
}
|
|
||||||
|
|
||||||
_args.push_back (a);
|
_args.push_back (a);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue