mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdHelp: Added 'cancel' command help
This commit is contained in:
parent
14677ab5ef
commit
3e35a33c53
1 changed files with 14 additions and 2 deletions
|
@ -34,6 +34,7 @@ int CmdHelpUsage ()
|
||||||
// TODO This is going to need formatting.
|
// TODO This is going to need formatting.
|
||||||
std::cout << '\n'
|
std::cout << '\n'
|
||||||
<< "Usage: timew [--version]\n"
|
<< "Usage: timew [--version]\n"
|
||||||
|
<< " timew cancel\n"
|
||||||
<< " timew continue\n"
|
<< " timew continue\n"
|
||||||
<< " timew diagnostics\n"
|
<< " timew diagnostics\n"
|
||||||
<< " timew export [<interval>] [<tag> ...]\n"
|
<< " timew export [<interval>] [<tag> ...]\n"
|
||||||
|
@ -93,12 +94,23 @@ int CmdHelp (const CLI& cli)
|
||||||
auto words = cli.getWords ();
|
auto words = cli.getWords ();
|
||||||
if (words.size ())
|
if (words.size ())
|
||||||
{
|
{
|
||||||
|
// Ruler 1 2 3 4 5 6 7 8
|
||||||
|
// 12345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||||
|
if (words[0] == "cancel")
|
||||||
|
std::cout << '\n'
|
||||||
|
<< "Syntax: timew cancel\n"
|
||||||
|
<< '\n'
|
||||||
|
<< "If there is an open interval, close and abandon it.\n"
|
||||||
|
<< '\n'
|
||||||
|
<< "See also 'start', 'stop'.\n"
|
||||||
|
<< '\n';
|
||||||
|
|
||||||
// TODO clear
|
// TODO clear
|
||||||
// TODO config
|
// TODO config
|
||||||
|
|
||||||
// Ruler 1 2 3 4 5 6 7 8
|
// Ruler 1 2 3 4 5 6 7 8
|
||||||
// 12345678901234567890123456789012345678901234567890123456789012345678901234567890
|
// 12345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||||
if (words[0] == "continue")
|
else if (words[0] == "continue")
|
||||||
std::cout << '\n'
|
std::cout << '\n'
|
||||||
<< "Syntax: timew continue\n"
|
<< "Syntax: timew continue\n"
|
||||||
<< '\n'
|
<< '\n'
|
||||||
|
@ -249,7 +261,7 @@ int CmdHelp (const CLI& cli)
|
||||||
<< '\n'
|
<< '\n'
|
||||||
<< " $ timew stop\n"
|
<< " $ timew stop\n"
|
||||||
<< '\n'
|
<< '\n'
|
||||||
<< "See also 'continue', 'start', 'track'.\n"
|
<< "See also 'cancel', 'continue', 'start', 'track'.\n"
|
||||||
<< '\n';
|
<< '\n';
|
||||||
|
|
||||||
// TODO summary
|
// TODO summary
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue