- Added debug.parser=3 support to ::findAttributes.
This commit is contained in:
Paul Beckingham 2014-10-31 20:01:56 -04:00
parent 399097d683
commit 299cda2283

View file

@ -1525,11 +1525,20 @@ void CLI::findAttributes ()
options.push_back (e->second);
// Walk the arguments and tag as OP.
bool changes = false;
std::vector <A>::iterator a;
for (a = _args.begin (); a != _args.end (); ++a)
if (a->hasTag ("FILTER"))
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"));
}
////////////////////////////////////////////////////////////////////////////////