- Implemented the ability to iterate over installed Command objects,
  to augment the '_commands' command.
- Renamed verbosity tokens, to de-pluralize them.
This commit is contained in:
Paul Beckingham
2011-05-14 15:45:52 -04:00
parent 14bea5e1b4
commit 902ed48243
8 changed files with 49 additions and 52 deletions

View File

@@ -453,6 +453,10 @@ int handleCompletionCommands (std::string& outs)
std::vector <std::string> commands;
context.cmd.allCommands (commands);
std::map <std::string, Command*>::iterator i;
for (i = context.commands.begin (); i != context.commands.end (); ++i)
commands.push_back (i->first);
// Sort alphabetically.
std::sort (commands.begin (), commands.end ());