CmdCalendar: Converted from CLI::_args[0] to CLI2::_original_args[0]
This commit is contained in:
@@ -338,7 +338,7 @@ int CmdCalendar::execute (std::string& output)
|
|||||||
// calendar --> taskendar
|
// calendar --> taskendar
|
||||||
|
|
||||||
// If the executable was "cal" or equivalent, replace it with "task".
|
// 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");
|
auto cal = executable.find ("cal");
|
||||||
if (cal != std::string::npos)
|
if (cal != std::string::npos)
|
||||||
executable = executable.substr (0, cal) + PACKAGE;
|
executable = executable.substr (0, cal) + PACKAGE;
|
||||||
|
|||||||
Reference in New Issue
Block a user