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

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

View file

@ -90,6 +90,9 @@ Interval getFilter (const CLI& cli)
} }
else if (arg.hasTag ("KEYWORD")) 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); args.push_back (raw);
} }
else else