mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-20 04:13:07 +02:00
CLI
- Added debug.parser=3 support to ::insertJunctions.
This commit is contained in:
parent
299cda2283
commit
8abc2967f7
1 changed files with 9 additions and 1 deletions
10
src/CLI.cpp
10
src/CLI.cpp
|
@ -1552,6 +1552,7 @@ void CLI::findAttributes ()
|
|||
//
|
||||
void CLI::insertJunctions ()
|
||||
{
|
||||
bool changes = false;
|
||||
std::vector <A> reconstructed;
|
||||
std::vector <A>::iterator prev = _args.begin ();
|
||||
std::vector <A>::iterator a;
|
||||
|
@ -1575,6 +1576,7 @@ void CLI::insertJunctions ()
|
|||
opOr.tag ("FILTER");
|
||||
opOr.tag ("OP");
|
||||
reconstructed.push_back (opOr);
|
||||
changes = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1585,7 +1587,13 @@ void CLI::insertJunctions ()
|
|||
reconstructed.push_back (*a);
|
||||
}
|
||||
|
||||
_args = reconstructed;
|
||||
if (changes)
|
||||
{
|
||||
_args = reconstructed;
|
||||
|
||||
if (context.config.getInteger ("debug.parser") >= 3)
|
||||
context.debug (context.cli.dump ("CLI::analyze insertJunctions"));
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue