CLI
- Implemented ::getOverride, and updated Context to use it.
This commit is contained in:
11
src/CLI.cpp
11
src/CLI.cpp
@@ -354,6 +354,17 @@ void CLI::analyze (bool parse /* = true */)
|
||||
context.debug ("CLI::analyze end");
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
const std::string CLI::getOverride ()
|
||||
{
|
||||
std::vector <A>::const_iterator a;
|
||||
for (a = _args.begin (); a != _args.end (); ++a)
|
||||
if (a->hasTag ("RC"))
|
||||
return a->attribute ("file");
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Extract all the FILTER-tagged items.
|
||||
const std::string CLI::getFilter ()
|
||||
|
||||
Reference in New Issue
Block a user