CLI: Corrected list of keywords

This commit is contained in:
Paul Beckingham 2016-05-03 07:47:05 -04:00
parent 276b53f2fc
commit 252a470ef8
2 changed files with 12 additions and 6 deletions

View file

@ -404,12 +404,15 @@ void CLI::identifyFilter ()
a.tag ("FILTER");
}
else if (raw == "from" ||
raw == "since" ||
raw == "to" ||
raw == "until" ||
raw == "-" ||
raw == "for")
else if (raw == "from" ||
raw == "since" ||
raw == "to" ||
raw == "for" ||
raw == "until" ||
raw == "-" ||
raw == "before" ||
raw == "after" ||
raw == "ago")
{
a.tag ("FILTER");
a.tag ("KEYWORD");

View file

@ -90,6 +90,9 @@ Interval getFilter (const CLI& cli)
}
else if (arg.hasTag ("KEYWORD"))
{
// Note: that KEYWORDS are not entities (why not?) and there is a list
// in CLI.cpp of them that must be maintained and synced with this
// function.
args.push_back (raw);
}
else