Context: Do not apply context for the export command

This commit is contained in:
Tomas Babej 2015-03-10 05:50:25 +01:00 committed by Paul Beckingham
parent 4eb70e68b7
commit 1465bcb918
5 changed files with 13 additions and 10 deletions

View file

@ -532,10 +532,13 @@ void CLI::applyOverrides ()
////////////////////////////////////////////////////////////////////////////////
// Extract all the FILTER-tagged items.
const std::string CLI::getFilter ()
const std::string CLI::getFilter (bool applyContext /* = true */)
{
// Handle context setting
addContextFilter ();
// Commands that don't want to respect current context should leverage
// the applyContext argument
if (applyContext)
addContextFilter ();
std::string filter = "";
if (_args.size ())