aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-10 09:20:48 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-10 10:13:44 +0100
commitfbe3783ccc9cba5adb460dec5f1115249d1526d9 (patch)
tree7bf96cbc36592aad46949d4896837fa7da41eeb1
parent8a4defb4131d3baf2ea9cd2223f0f5e2fd0dda5a (diff)
downloadpaludis-fbe3783ccc9cba5adb460dec5f1115249d1526d9.tar.gz
paludis-fbe3783ccc9cba5adb460dec5f1115249d1526d9.tar.xz
Improve man cave somewhat
-rw-r--r--src/clients/cave/command_line.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/clients/cave/command_line.cc b/src/clients/cave/command_line.cc
index 8b2f963..f9989a3 100644
--- a/src/clients/cave/command_line.cc
+++ b/src/clients/cave/command_line.cc
@@ -18,6 +18,7 @@
*/
#include "command_line.hh"
+#include "command_factory.hh"
using namespace paludis;
using namespace cave;
@@ -31,6 +32,7 @@ CaveCommandLine::CaveCommandLine() :
a_version(&g_global_options, "version", 'v', "display version information", false)
{
add_usage_line("[ --environment class:suffix ] [ --log-level level ] COMMAND [ARGS...]");
+ add_usage_line("help [ --all ]");
add_description_line("For the COMMAND argument, see 'cave help' for a list of common commands, "
"or 'cave help --all' for all commands. To see documentation for a command named "
@@ -45,5 +47,9 @@ CaveCommandLine::CaveCommandLine() :
add_environment_variable("CAVE_COMMANDS_PATH", "Colon-separated paths in which to look for "
"additional commands.");
+
+ for (CommandFactory::ConstIterator c(CommandFactory::get_instance()->begin()), c_end(CommandFactory::get_instance()->end()) ;
+ c != c_end ; ++c)
+ add_see_also("cave-" + *c, 1);
}