From 5d9fb1fff9bb8fd6de6d7d9efdda61c75f5fb882 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 31 May 2011 00:43:26 -0400 Subject: [PATCH] Help - Modified command usage help output. --- src/commands/CmdHelp.cpp | 3 +++ src/commands/CmdQuery.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/commands/CmdHelp.cpp b/src/commands/CmdHelp.cpp index d2de0645c..439114f80 100644 --- a/src/commands/CmdHelp.cpp +++ b/src/commands/CmdHelp.cpp @@ -56,6 +56,7 @@ int CmdHelp::execute (const std::string&, std::string& output) int row = view.addRow (); view.set (row, 0, "Usage:"); view.set (row, 1, "task"); + view.set (row, 2, "Runs rc.default.command, if specified."); // Obsolete method of getting a list of all commands. std::vector all; @@ -66,6 +67,7 @@ int CmdHelp::execute (const std::string&, std::string& output) // Sort alphabetically by usage. std::sort (all.begin (), all.end ()); + // Add the regular commands. std::vector ::iterator name; for (name = all.begin (); name != all.end (); ++name) { @@ -77,6 +79,7 @@ int CmdHelp::execute (const std::string&, std::string& output) } } + // Add the helper commands. for (name = all.begin (); name != all.end (); ++name) { if ((*name)[0] == '_') diff --git a/src/commands/CmdQuery.cpp b/src/commands/CmdQuery.cpp index 4241c11d9..2bd4ebedc 100644 --- a/src/commands/CmdQuery.cpp +++ b/src/commands/CmdQuery.cpp @@ -35,7 +35,7 @@ extern Context context; CmdQuery::CmdQuery () { _keyword = "_query"; - _usage = "task _query "; + _usage = "task _query []"; _description = "Executes external commands and scripts"; _read_only = true; _displays_id = true;