aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-08-28 11:13:12 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-08-28 11:13:38 +0100
commita2df3b989efd362b30c72de951b6d1b945474155 (patch)
treed7aa3aa6c19fbe930cf5e5b0cf96a55145305820
parentf901c05d148c0125b69a1eb628710c43d419be06 (diff)
downloadpaludis-a2df3b989efd362b30c72de951b6d1b945474155.tar.gz
paludis-a2df3b989efd362b30c72de951b6d1b945474155.tar.xz
Purge takes no parameters
-rw-r--r--src/clients/cave/cmd_purge.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/clients/cave/cmd_purge.cc b/src/clients/cave/cmd_purge.cc
index 2729ff3..7382a4e 100644
--- a/src/clients/cave/cmd_purge.cc
+++ b/src/clients/cave/cmd_purge.cc
@@ -22,6 +22,7 @@
#include "resolve_common.hh"
#include "exceptions.hh"
+#include <paludis/args/do_help.hh>
#include <paludis/util/stringify.hh>
#include <paludis/util/make_null_shared_ptr.hh>
#include <paludis/user_dep_spec.hh>
@@ -101,6 +102,9 @@ PurgeCommand::run(
return EXIT_SUCCESS;
}
+ if (cmdline.begin_parameters() != cmdline.end_parameters())
+ throw args::DoHelp("purge takes no parameters");
+
cmdline.resolution_options->apply_shortcuts();
cmdline.resolution_options->verify(env);