CmdHelp: Added DOM references and 'get' command

This commit is contained in:
Paul Beckingham 2016-07-16 10:38:15 -04:00
parent 92731c889c
commit 0c2ad32069

View file

@ -43,6 +43,7 @@ int CmdHelpUsage ()
<< " timew export [<interval>] [<tag> ...]\n"
<< " timew extensions\n"
<< " timew gaps [<interval>] [<tag> ...]\n"
<< " timew get <DOM> [<DOM> ...]\n"
<< " timew help [<command> | interval | hints | date | duration]\n"
<< " timew join @<id> @<id>\n"
<< " timew lengthen @<id> [@<id> ...] <duration>\n"
@ -67,6 +68,7 @@ int CmdHelpUsage ()
<< " timew help hints\n"
<< " timew help date\n"
<< " timew help duration\n"
<< " timew help dom\n"
<< '\n'
<< "Interval:\n"
<< " [from] <date>\n"
@ -358,6 +360,16 @@ int CmdHelp (const CLI& cli)
<< "See also 'extensions'.\n"
<< '\n';
// Ruler 1 2 3 4 5 6 7 8
// 12345678901234567890123456789012345678901234567890123456789012345678901234567890
else if (words[0] == "dom")
std::cout << '\n'
<< "Supported DOM references are:\n"
<< '\n'
<< " dom.active '1' if there is active tracking, otherwise '0'\n"
<< '\n'
<< '\n';
// Ruler 1 2 3 4 5 6 7 8
// 12345678901234567890123456789012345678901234567890123456789012345678901234567890
else if (words[0] == "export")
@ -400,6 +412,20 @@ int CmdHelp (const CLI& cli)
<< "See also 'summary'.\n"
<< '\n';
// Ruler 1 2 3 4 5 6 7 8
// 12345678901234567890123456789012345678901234567890123456789012345678901234567890
else if (words[0] == "get")
std::cout << '\n'
<< "Syntax: timew get <DOM> [<DOM> ...]\n"
<< '\n'
<< "Validates the DOM reference, then obtains the value and displays it. For example\n"
<< '\n'
<< " $ timew get dom.active\n"
<< " 1\n"
<< '\n'
<< "See also 'dom'.\n"
<< '\n';
// Ruler 1 2 3 4 5 6 7 8
// 12345678901234567890123456789012345678901234567890123456789012345678901234567890
else if (words[0] == "help")