Code: Improved comments regarding filters/args.

This commit is contained in:
Paul Beckingham 2015-06-07 15:34:33 -04:00
parent f0fbdaf2c9
commit 2f1ca72334
4 changed files with 10 additions and 3 deletions

View file

@ -334,6 +334,9 @@ int CmdCalendar::execute (std::string& output)
if (context.commands.find (report) == context.commands.end ())
throw std::string (STRING_ERROR_DETAILS);
// TODO Fix this: cal --> task
// calendar --> taskendar
// If the executable was "cal" or equivalent, replace it with "task".
std::string executable = context.cli._args[0].attribute ("raw");
auto cal = executable.find ("cal");