mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CLI
- Added debug.parser=3 support to ::desugarPlainArgs.
This commit is contained in:
parent
08310cf2a2
commit
d54c9da021
1 changed files with 9 additions and 1 deletions
10
src/CLI.cpp
10
src/CLI.cpp
|
@ -1436,6 +1436,7 @@ void CLI::insertIDExpr ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
void CLI::desugarPlainArgs ()
|
||||
{
|
||||
bool changes = false;
|
||||
std::vector <A> reconstructed;
|
||||
std::vector <A>::iterator a;
|
||||
std::vector <A>::iterator prev = _args.begin ();
|
||||
|
@ -1464,6 +1465,7 @@ void CLI::desugarPlainArgs ()
|
|||
rhs.tag ("LITERAL");
|
||||
rhs.tag ("FILTER");
|
||||
reconstructed.push_back (rhs);
|
||||
changes = true;
|
||||
}
|
||||
else
|
||||
reconstructed.push_back (*a);
|
||||
|
@ -1471,7 +1473,13 @@ void CLI::desugarPlainArgs ()
|
|||
prev = a;
|
||||
}
|
||||
|
||||
_args = reconstructed;
|
||||
if (changes)
|
||||
{
|
||||
_args = reconstructed;
|
||||
|
||||
if (context.config.getInteger ("debug.parser") >= 3)
|
||||
context.debug (context.cli.dump ("CLI::analyze desugarPlainArgs"));
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue