mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Feedback: Improved feedback for tasks that do not have ID
- Thanks to Tomas Babej.
This commit is contained in:
parent
85990351e3
commit
889e36116c
2 changed files with 2 additions and 1 deletions
|
@ -59,7 +59,7 @@ int CmdAdd::execute (std::string& output)
|
|||
context.tdb2.add (task);
|
||||
|
||||
// Do not display ID 0, users cannot query by that
|
||||
if (context.verbose ("new-id") and task.id != 0)
|
||||
if (context.verbose ("new-id") && task.id != 0)
|
||||
output += format (STRING_CMD_ADD_FEEDBACK, task.id) + "\n";
|
||||
else if (context.verbose ("new-uuid"))
|
||||
output += format (STRING_CMD_ADD_FEEDBACK, task.get ("uuid")) + "\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue