mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-30 11:27:19 +02:00
CLI
- Added debug.parser=3 support to ::findOperators.
This commit is contained in:
parent
d54c9da021
commit
399097d683
1 changed files with 8 additions and 0 deletions
|
@ -1496,11 +1496,19 @@ void CLI::findOperators ()
|
|||
options.push_back (e->second);
|
||||
|
||||
// Walk the arguments and tag as OP.
|
||||
bool changes = false;
|
||||
std::vector <A>::iterator a;
|
||||
for (a = _args.begin (); a != _args.end (); ++a)
|
||||
if (a->hasTag ("FILTER"))
|
||||
if (std::find (options.begin (), options.end (), a->attribute ("raw")) != options.end ())
|
||||
{
|
||||
a->tag ("OP");
|
||||
changes = true;
|
||||
}
|
||||
|
||||
if (changes &&
|
||||
context.config.getInteger ("debug.parser") >= 3)
|
||||
context.debug (context.cli.dump ("CLI::analyze findOperators"));
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue