aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-02 15:25:01 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-02 15:25:01 +0100
commit674ba2ec193f9eae7af8c45675dc382824f0432b (patch)
tree5060ad1cac33967b0ed5e569a89fac6913ccbd13
parenta366bc8fb1e67bed0e19c3ed1ba8a06f90231811 (diff)
downloadpaludis-674ba2ec193f9eae7af8c45675dc382824f0432b.tar.gz
paludis-674ba2ec193f9eae7af8c45675dc382824f0432b.tar.xz
More compact cave search output
-rw-r--r--src/clients/cave/cmd_search.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/clients/cave/cmd_search.cc b/src/clients/cave/cmd_search.cc
index d12fdd9..b15c2b8 100644
--- a/src/clients/cave/cmd_search.cc
+++ b/src/clients/cave/cmd_search.cc
@@ -300,6 +300,17 @@ SearchCommand::run(
if (show_args->empty())
return EXIT_FAILURE;
+ if (! cmdline.search_options.a_all_versions.specified())
+ show_args->push_back("--one-version");
+
+ show_args->push_back("--significant-keys-only");
+ for (args::StringSetArg::ConstIterator k(cmdline.match_options.a_key.begin_args()), k_end(cmdline.match_options.a_key.end_args()) ;
+ k != k_end ; ++k)
+ {
+ show_args->push_back("--key");
+ show_args->push_back(*k);
+ }
+
ShowCommand show_command;
return show_command.run(env, show_args);
}