mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 22:47:20 +02:00
CLI2: Removed unnecessary TW and CALENDAR tags
This commit is contained in:
parent
c305768ed8
commit
addcbe15d5
1 changed files with 10 additions and 8 deletions
18
src/CLI2.cpp
18
src/CLI2.cpp
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue