mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CLI
- Added debug.parser=3 support to ::desugarAttributes.
This commit is contained in:
parent
255d7b2126
commit
73e767ec3e
1 changed files with 11 additions and 2 deletions
11
src/CLI.cpp
11
src/CLI.cpp
|
@ -797,6 +797,7 @@ void CLI::desugarTags ()
|
|||
// <name>:['"][<value>]['"] --> name = value
|
||||
void CLI::desugarAttributes ()
|
||||
{
|
||||
bool changes = false;
|
||||
std::vector <A> reconstructed;
|
||||
std::vector <A>::iterator a;
|
||||
for (a = _args.begin (); a != _args.end (); ++a)
|
||||
|
@ -882,14 +883,22 @@ void CLI::desugarAttributes ()
|
|||
}
|
||||
}
|
||||
|
||||
if (!found)
|
||||
if (found)
|
||||
changes = true;
|
||||
else
|
||||
reconstructed.push_back (*a);
|
||||
}
|
||||
else
|
||||
reconstructed.push_back (*a);
|
||||
}
|
||||
|
||||
if (changes)
|
||||
{
|
||||
_args = reconstructed;
|
||||
|
||||
if (context.config.getInteger ("debug.parser") >= 3)
|
||||
context.debug (context.cli.dump ("CLI::analyze desugarAttributes"));
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue