diff --git a/src/commands/CmdAdd.cpp b/src/commands/CmdAdd.cpp index de9eef8ac..e76d68ac2 100644 --- a/src/commands/CmdAdd.cpp +++ b/src/commands/CmdAdd.cpp @@ -63,13 +63,15 @@ int CmdAdd::execute (std::string& output) // asked for this if they just wanted a human-friendly number. if (Context::getContext ().verbose ("new-uuid") && - status != Task::recurring) - output += format ("Created task {1}.\n", task.get ("uuid")); - - else if (Context::getContext ().verbose ("new-uuid") && status == Task::recurring) output += format ("Created task {1} (recurrence template).\n", task.get ("uuid")); + else if (Context::getContext ().verbose ("new-uuid") || + (Context::getContext ().verbose ("new-id") && + (status == Task::completed || + status == Task::deleted))) + output += format ("Created task {1}.\n", task.get ("uuid")); + else if (Context::getContext ().verbose ("new-id") && (status == Task::pending || status == Task::waiting))