mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-04 10:37:19 +02:00
Parser
- Made 'plain args' diagnostics debug-only.
This commit is contained in:
parent
84b95ce06d
commit
ebca8e1282
1 changed files with 9 additions and 6 deletions
|
@ -1353,14 +1353,17 @@ void Parser::findModifications ()
|
||||||
// are not otherwise recognized, and potentially promote them to patterns.
|
// are not otherwise recognized, and potentially promote them to patterns.
|
||||||
void Parser::findPlainArgs ()
|
void Parser::findPlainArgs ()
|
||||||
{
|
{
|
||||||
std::vector <Tree*>::iterator i;
|
if (context.config.getBoolean ("debug"))
|
||||||
for (i = _tree->_branches.begin (); i != _tree->_branches.end (); ++i)
|
|
||||||
{
|
{
|
||||||
if ((*i)->hasTag ("FILTER") &&
|
std::vector <Tree*>::iterator i;
|
||||||
(*i)->hasTag ("ORIGINAL") && // TODO Wrong, can come in through alias/filter
|
for (i = _tree->_branches.begin (); i != _tree->_branches.end (); ++i)
|
||||||
(*i)->countTags () == 2)
|
|
||||||
{
|
{
|
||||||
std::cout << "# plain arg '" << (*i)->attribute ("raw") << "'\n";
|
if ((*i)->hasTag ("FILTER") &&
|
||||||
|
(*i)->hasTag ("ORIGINAL") && // TODO Wrong, can come in through alias/filter
|
||||||
|
(*i)->countTags () <= 2)
|
||||||
|
{
|
||||||
|
std::cout << "# plain arg '" << (*i)->attribute ("raw") << "'\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue