mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CLI
- ::unsweetenAttributes no longer clobbers non-FILTER args.
This commit is contained in:
parent
f862ad15e6
commit
720cc57192
1 changed files with 63 additions and 58 deletions
|
@ -549,6 +549,8 @@ void CLI::unsweetenAttributes ()
|
|||
std::vector <A> reconstructed;
|
||||
std::vector <A>::iterator a;
|
||||
for (a = _args.begin (); a != _args.end (); ++a)
|
||||
{
|
||||
if (a->hasTag ("FILTER"))
|
||||
{
|
||||
// Look for a valid attribute name.
|
||||
bool found = false;
|
||||
|
@ -624,6 +626,9 @@ void CLI::unsweetenAttributes ()
|
|||
if (!found)
|
||||
reconstructed.push_back (*a);
|
||||
}
|
||||
else
|
||||
reconstructed.push_back (*a);
|
||||
}
|
||||
|
||||
_args = reconstructed;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue