From 8f55b49938204ce93dc22d798c930432d1da0144 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 18 Jul 2016 17:20:50 -0400 Subject: [PATCH] CmdHelp: Added 'delete' command --- src/commands/CmdHelp.cpp | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/src/commands/CmdHelp.cpp b/src/commands/CmdHelp.cpp index 49f80e4f..2cd6b741 100644 --- a/src/commands/CmdHelp.cpp +++ b/src/commands/CmdHelp.cpp @@ -39,6 +39,7 @@ int CmdHelpUsage () << " timew config [ [] [ ...]\n" + << " timew delete @ [@ ...]\n" << " timew diagnostics\n" << " timew export [] [ ...]\n" << " timew extensions\n" @@ -88,7 +89,6 @@ int CmdHelpUsage () << " rc.=\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 @ [@ ...]\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")