CLI: Apply context filter directly in getFilter method
This commit is contained in:
committed by
Paul Beckingham
parent
3a77a5f291
commit
dc0502dd9f
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user