Code Cleanup

- Print a message in bulk change when the user choose not to denotate a
  specific task (more consistent behaviour with other bulk changes).
This commit is contained in:
Louis-Claude Canon 2012-07-24 18:15:38 +02:00 committed by Paul Beckingham
parent 406f098263
commit 60e7260920
2 changed files with 6 additions and 0 deletions

View file

@ -127,6 +127,11 @@ int CmdDenotate::execute (std::string& output)
if (context.verbose ("project"))
projectChanges[task->get ("project")] = onProjectChange (*task, false);
}
else
{
std::cout << STRING_CMD_DENO_NO << "\n";
rc = 1;
}
if (context.verbose ("blank"))
std::cout << "\n";
}

View file

@ -392,6 +392,7 @@
#define STRING_CMD_DENO_CONFIRM "Denotate task {1} '{2}'?"
#define STRING_CMD_DENO_FOUND "Found annotation '{1}' and deleted it."
#define STRING_CMD_DENO_NOMATCH "Did not find any matching annotation to be deleted for '{1}'."
#define STRING_CMD_DENO_NO "Task not denotated."
#define STRING_CMD_DENO_1 "Denotated {1} task."
#define STRING_CMD_DENO_N "Denotated {1} tasks."