aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2009-06-07 13:03:52 -0700
committerAvatar David Leverton <levertond@googlemail.com> 2009-06-07 21:21:21 +0100
commitc0cff286e75bd986b1f83638e76cc8d24fb30f62 (patch)
tree3872ed873a5d8f15f94544329d724df8a3542370
parent57a52c27ad3752b70eb6e548ab1932d54f3e4ad2 (diff)
downloadpaludis-c0cff286e75bd986b1f83638e76cc8d24fb30f62.tar.gz
paludis-c0cff286e75bd986b1f83638e76cc8d24fb30f62.tar.xz
mark help as an important command
-rw-r--r--src/clients/cave/cmd_help.cc6
-rw-r--r--src/clients/cave/cmd_help.hh2
2 files changed, 8 insertions, 0 deletions
diff --git a/src/clients/cave/cmd_help.cc b/src/clients/cave/cmd_help.cc
index 5b13d73..46e7c6f 100644
--- a/src/clients/cave/cmd_help.cc
+++ b/src/clients/cave/cmd_help.cc
@@ -87,6 +87,12 @@ namespace
};
}
+bool
+HelpCommand::important() const
+{
+ return true;
+}
+
int
HelpCommand::run(const std::tr1::shared_ptr<Environment> & env,
const std::tr1::shared_ptr< const Sequence<std::string> > & args)
diff --git a/src/clients/cave/cmd_help.hh b/src/clients/cave/cmd_help.hh
index 02838a0..d834684 100644
--- a/src/clients/cave/cmd_help.hh
+++ b/src/clients/cave/cmd_help.hh
@@ -29,6 +29,8 @@ namespace paludis
public Command
{
public:
+ bool important() const;
+
int run(const std::tr1::shared_ptr<Environment> &,
const std::tr1::shared_ptr< const Sequence<std::string> > & args);