diff options
author | 2010-08-28 11:13:12 +0100 | |
---|---|---|
committer | 2010-08-28 11:13:38 +0100 | |
commit | a2df3b989efd362b30c72de951b6d1b945474155 (patch) | |
tree | d7aa3aa6c19fbe930cf5e5b0cf96a55145305820 | |
parent | f901c05d148c0125b69a1eb628710c43d419be06 (diff) | |
download | paludis-a2df3b989efd362b30c72de951b6d1b945474155.tar.gz paludis-a2df3b989efd362b30c72de951b6d1b945474155.tar.xz |
Purge takes no parameters
-rw-r--r-- | src/clients/cave/cmd_purge.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/clients/cave/cmd_purge.cc b/src/clients/cave/cmd_purge.cc index 2729ff3e6..7382a4ec3 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); |