mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-31 05:47:18 +02:00
CLI
- Added debug.parser=3 support to ::findOverrides.
This commit is contained in:
parent
86ff5a204f
commit
9deb9e9f8f
1 changed files with 7 additions and 0 deletions
|
@ -593,6 +593,7 @@ void CLI::aliasExpansion ()
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
void CLI::findOverrides ()
|
void CLI::findOverrides ()
|
||||||
{
|
{
|
||||||
|
bool changes = false;
|
||||||
std::string raw;
|
std::string raw;
|
||||||
bool terminated = false;
|
bool terminated = false;
|
||||||
std::vector <A>::iterator a;
|
std::vector <A>::iterator a;
|
||||||
|
@ -610,6 +611,7 @@ void CLI::findOverrides ()
|
||||||
{
|
{
|
||||||
a->tag ("RC");
|
a->tag ("RC");
|
||||||
a->attribute ("file", raw.substr (3));
|
a->attribute ("file", raw.substr (3));
|
||||||
|
changes = true;
|
||||||
}
|
}
|
||||||
else if (isConfigOverride (raw))
|
else if (isConfigOverride (raw))
|
||||||
{
|
{
|
||||||
|
@ -621,9 +623,14 @@ void CLI::findOverrides ()
|
||||||
a->tag ("CONFIG");
|
a->tag ("CONFIG");
|
||||||
a->attribute ("name", raw.substr (3, sep - 3));
|
a->attribute ("name", raw.substr (3, sep - 3));
|
||||||
a->attribute ("value", raw.substr (sep + 1));
|
a->attribute ("value", raw.substr (sep + 1));
|
||||||
|
changes = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (changes &&
|
||||||
|
context.config.getInteger ("debug.parser") >= 3)
|
||||||
|
context.debug (context.cli.dump ("CLI::analyze findOverrides"));
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue