mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CmdCalendar: Converted from CLI::_args[0] to CLI2::_original_args[0]
This commit is contained in:
parent
31fb7726c0
commit
e4ab3574e4
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue