CLI: Apply context filter directly in getFilter method

This commit is contained in:
Tomas Babej 2015-02-21 14:35:19 +01:00 committed by Paul Beckingham
parent 3a77a5f291
commit dc0502dd9f

View file

@ -534,6 +534,9 @@ void CLI::applyOverrides ()
// Extract all the FILTER-tagged items.
const std::string CLI::getFilter ()
{
// Handle context setting
addContextFilter ();
std::string filter = "";
if (_args.size ())
{
@ -558,6 +561,7 @@ const std::string CLI::getFilter ()
filter = "( " + filter + " )";
}
context.debug("Derived filter: '" + filter + "'");
return filter;
}