CLI2: Removed unnecessary TW and CALENDAR tags

This commit is contained in:
Paul Beckingham 2015-06-14 14:21:55 -04:00
parent c305768ed8
commit addcbe15d5

View file

@ -358,18 +358,20 @@ void CLI2::handleArg0 ()
basename = raw.substr (slash + 1); basename = raw.substr (slash + 1);
a.attribute ("basename", basename); a.attribute ("basename", basename);
if (basename == "cal" || basename == "calendar") if (basename == "cal" ||
a.tag ("CALENDAR"); basename == "calendar")
else if (basename == "task" || basename == "tw" || basename == "t")
a.tag ("TW");
_args.push_back (a);
if (a.hasTag ("CALENDAR"))
{ {
_args.push_back (a);
A2 cal ("argCal", "calendar", Lexer::Type::word); A2 cal ("argCal", "calendar", Lexer::Type::word);
_args.push_back (cal); _args.push_back (cal);
} }
else if (basename == "task" ||
basename == "tw" ||
basename == "t")
{
_args.push_back (a);
}
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////