mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Help
- Modified command usage help output.
This commit is contained in:
parent
067f5920bb
commit
5d9fb1fff9
2 changed files with 4 additions and 1 deletions
|
@ -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 <std::string> 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 <std::string>::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] == '_')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue