CmdExtensions: Renamed 'extension' command to 'extensions', for consistency

This commit is contained in:
Paul Beckingham 2016-03-20 09:47:46 -04:00
parent b15f1661d8
commit 86b7642156
6 changed files with 11 additions and 11 deletions

View file

@ -21,10 +21,10 @@ was built, compiler features, configuration, file access, extensions and more.
The purpose of this command is to help diagnose configuration problems, and
provide supplemental information when reporting a problem.
See also 'extension'.
See also 'extensions'.
.TP
.B timew extension
.B timew extensions
Displays the directory containing the extension programs, and a table with each
of the extensions and status.

View file

@ -12,7 +12,7 @@ set (commands_SRCS CmdClear.cpp
CmdDefine.cpp
CmdDiagnostics.cpp
CmdExport.cpp
CmdExtension.cpp
CmdExtensions.cpp
CmdGaps.cpp
CmdHelp.cpp
CmdImport.cpp

View file

@ -33,7 +33,7 @@
////////////////////////////////////////////////////////////////////////////////
// Enumerate all extensions.
int CmdExtension (Rules& rules, Extensions& extensions)
int CmdExtensions (Rules& rules, Extensions& extensions)
{
Table t;
t.colorHeader (Color ("underline"));

View file

@ -35,6 +35,7 @@ int CmdHelpUsage ()
std::cout << "\n"
<< "Usage: timew [--version]\n"
<< " timew diagnostics\n"
<< " timew extensions\n"
<< " timew log [<message>]\n"
<< "\n";
@ -43,7 +44,6 @@ int CmdHelpUsage ()
// TODO continue
// TODO define
// TODO export
// TODO extension
// TODO gaps
// TODO help
// TODO import
@ -90,16 +90,16 @@ int CmdHelp (const std::vector <std::string>& args, Log& log)
<< "The purpose of this command is to help diagnose configuration problems, and\n"
<< "provide supplemental information when reporting a problem.\n"
<< "\n"
<< "See also 'extension'.\n"
<< "See also 'extensions'.\n"
<< "\n";
// TODO export
// Ruler 1 2 3 4 5 6 7 8
// 12345678901234567890123456789012345678901234567890123456789012345678901234567890
else if (args[2] == "extension")
else if (args[2] == "extensions")
std::cout << "\n"
<< "Syntax: timew extension\n"
<< "Syntax: timew extensions\n"
<< "\n"
<< "Displays the directory containing the extension programs, and a table with each\n"
<< "of the extensions and status.\n"

View file

@ -41,7 +41,7 @@ int CmdDefault ();
int CmdDefine (Rules&);
int CmdDiagnostics (Database&, Log&);
int CmdExport ();
int CmdExtension (Rules&, Extensions&);
int CmdExtensions (Rules&, Extensions&);
int CmdGaps ();
int CmdHelpUsage ();
int CmdHelp (const std::vector <std::string>&, Log&);

View file

@ -182,7 +182,7 @@ int dispatchCommand (
std::vector <std::string> allCommands =
{
"clear", "config", "continue", "define", "diagnostics", "export",
"extension", "gaps", "help", "import", "log", "report", "start", "stop",
"extensions", "gaps", "help", "import", "log", "report", "start", "stop",
"tags", "track", "undo"
};
@ -198,7 +198,7 @@ int dispatchCommand (
else if (closeEnough (allCommands[3], args[1], 2)) status = CmdDefine (rules);
else if (closeEnough (allCommands[4], args[1], 2)) status = CmdDiagnostics (database, log);
else if (closeEnough (allCommands[5], args[1], 2)) status = CmdExport ();
else if (closeEnough (allCommands[6], args[1], 2)) status = CmdExtension (rules, extensions);
else if (closeEnough (allCommands[6], args[1], 2)) status = CmdExtensions (rules, extensions);
else if (closeEnough (allCommands[7], args[1], 2)) status = CmdGaps ();
else if (closeEnough (allCommands[8], args[1], 2)) status = CmdHelp (args, log);
else if (closeEnough (allCommands[9], args[1], 2)) status = CmdImport ();