From 4857269d12d80d0b024c975ed50e67e4b213d622 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 28 May 2011 14:11:04 -0400 Subject: [PATCH] Commands - help - Help command now displays helper functions after the regular commands. --- src/commands/CmdHelp.cpp | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/commands/CmdHelp.cpp b/src/commands/CmdHelp.cpp index 0bbd64b6f..0df0b5191 100644 --- a/src/commands/CmdHelp.cpp +++ b/src/commands/CmdHelp.cpp @@ -69,9 +69,22 @@ int CmdHelp::execute (const std::string& command_line, std::string& output) std::vector ::iterator name; for (name = all.begin (); name != all.end (); ++name) { - row = view.addRow (); - view.set (row, 1, context.commands[*name]->usage ()); - view.set (row, 2, context.commands[*name]->description ()); + if ((*name)[0] != '_') + { + row = view.addRow (); + view.set (row, 1, context.commands[*name]->usage ()); + 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 ()); + } } /*