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