mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-26 06:37:20 +02:00
Commands - help
- Help command now displays helper functions after the regular commands.
This commit is contained in:
parent
bd93126f4e
commit
4857269d12
1 changed files with 16 additions and 3 deletions
|
@ -68,11 +68,24 @@ int CmdHelp::execute (const std::string& command_line, std::string& output)
|
||||||
|
|
||||||
std::vector <std::string>::iterator name;
|
std::vector <std::string>::iterator name;
|
||||||
for (name = all.begin (); name != all.end (); ++name)
|
for (name = all.begin (); name != all.end (); ++name)
|
||||||
|
{
|
||||||
|
if ((*name)[0] != '_')
|
||||||
{
|
{
|
||||||
row = view.addRow ();
|
row = view.addRow ();
|
||||||
view.set (row, 1, context.commands[*name]->usage ());
|
view.set (row, 1, context.commands[*name]->usage ());
|
||||||
view.set (row, 2, context.commands[*name]->description ());
|
view.set (row, 2, context.commands[*name]->description ());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (name = all.begin (); name != all.end (); ++name)
|
||||||
|
{
|
||||||
|
if ((*name)[0] == '_')
|
||||||
|
{
|
||||||
|
row = view.addRow ();
|
||||||
|
view.set (row, 1, context.commands[*name]->usage ());
|
||||||
|
view.set (row, 2, context.commands[*name]->description ());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
row = view.addRow ();
|
row = view.addRow ();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue