- Localized more commands.
This commit is contained in:
Paul Beckingham 2011-07-10 11:08:40 -04:00
parent ba723db9d7
commit e5139780ea
8 changed files with 85 additions and 80 deletions

View file

@ -41,7 +41,7 @@ extern Context context;
CmdDone::CmdDone ()
{
_keyword = "done";
_usage = "task done ID [tags] [attrs] [desc...]";
_usage = "task <filter> done [<modifications>]";
_description = STRING_CMD_DONE_USAGE;
_read_only = false;
_displays_id = false;
@ -87,12 +87,7 @@ int CmdDone::execute (std::string& output)
modify_task_annotate (*task, modifications);
apply_defaults (*task);
// Add an end date.
char entryTime[16];
sprintf (entryTime, "%u", (unsigned int) time (NULL));
task->set ("end", entryTime);
// Change status.
task->setEnd ();
task->setStatus (Task::completed);
// Stop the task, if started.