From e4ab3574e4c9bf67117cdd20f00d5fbfc60b3943 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 14 Jun 2015 22:33:09 -0400 Subject: [PATCH] CmdCalendar: Converted from CLI::_args[0] to CLI2::_original_args[0] --- src/commands/CmdCalendar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/CmdCalendar.cpp b/src/commands/CmdCalendar.cpp index 5dac9b6f9..5a66b2d13 100644 --- a/src/commands/CmdCalendar.cpp +++ b/src/commands/CmdCalendar.cpp @@ -334,11 +334,11 @@ 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 + // 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"); + std::string executable = context.cli2._original_args[0]; auto cal = executable.find ("cal"); if (cal != std::string::npos) executable = executable.substr (0, cal) + PACKAGE;