CmdHelp: Added 'delete' command

This commit is contained in:
Paul Beckingham 2016-07-18 17:20:50 -04:00
parent 8cd70c8778
commit 8f55b49938

View file

@ -39,6 +39,7 @@ int CmdHelpUsage ()
<< " timew config [<name> [<value | '']]\n"
<< " timew continue\n"
<< " timew day [<interval>] [<tag> ...]\n"
<< " timew delete @<id> [@<id> ...]\n"
<< " timew diagnostics\n"
<< " timew export [<interval>] [<tag> ...]\n"
<< " timew extensions\n"
@ -88,7 +89,6 @@ int CmdHelpUsage ()
<< " rc.<name>=<value>\n"
<< '\n';
// TODO clear
// TODO import
// TODO undo
@ -117,11 +117,9 @@ int CmdHelp (const CLI& cli)
<< '\n'
<< "If there is an open interval, it is abandoned.\n"
<< '\n'
<< "See also 'start', 'stop'.\n"
<< "See also 'start', 'stop', 'delete'.\n"
<< '\n';
// TODO clear
// Ruler 1 2 3 4 5 6 7 8
// 12345678901234567890123456789012345678901234567890123456789012345678901234567890
else if (words[0] == "config")
@ -343,6 +341,25 @@ int CmdHelp (const CLI& cli)
<< "See also 'week', 'month', 'summary'.\n"
<< '\n';
// Ruler 1 2 3 4 5 6 7 8
// 12345678901234567890123456789012345678901234567890123456789012345678901234567890
else if (words[0] == "delete")
std::cout << '\n'
<< "Syntax: timew delete @<id> [@<id> ...]\n"
<< '\n'
<< "Deletes an interval. Using the 'summary' command, and specifying the ':ids' hint\n"
<< "shows interval IDs. Using the right ID, you can identify an interval to delete.\n"
<< "For example, show the IDs:\n"
<< '\n'
<< " $ timew summary :week :ids\n"
<< '\n'
<< "Then having selected '@2' as the interval you wish to delete:\n"
<< '\n'
<< " $ timew delete @2\n"
<< '\n'
<< "See also 'cancel'.\n"
<< '\n';
// Ruler 1 2 3 4 5 6 7 8
// 12345678901234567890123456789012345678901234567890123456789012345678901234567890
else if (words[0] == "diagnostics")