aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-10 11:30:14 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-10 11:30:14 +0100
commitd5533123d3ba98481049053a474348ff058a6e12 (patch)
treea619d2801f93d44498f6d7c984ab34053642f6e6
parenta50d628f551959225b92202b3035cfcd9c8c033e (diff)
downloadpaludis-d5533123d3ba98481049053a474348ff058a6e12.tar.gz
paludis-d5533123d3ba98481049053a474348ff058a6e12.tar.xz
Show important things first
-rw-r--r--src/clients/cave/command_line.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/clients/cave/command_line.cc b/src/clients/cave/command_line.cc
index f9989a3..1025513 100644
--- a/src/clients/cave/command_line.cc
+++ b/src/clients/cave/command_line.cc
@@ -48,8 +48,10 @@ 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);
+ for (int pass(0) ; pass != 2 ; ++pass)
+ for (CommandFactory::ConstIterator c(CommandFactory::get_instance()->begin()), c_end(CommandFactory::get_instance()->end()) ;
+ c != c_end ; ++c)
+ if (CommandFactory::get_instance()->create(*c)->important() == (0 == pass))
+ add_see_also("cave-" + *c, 1);
}