aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ɓukasz P. Michalik <lmi@ift.uni.wroc.pl> 2010-07-28 13:04:23 +0200
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-28 12:06:00 +0100
commitef952e15c6447acfeff93c88809f7c10355818d0 (patch)
treef9e3626debb8dfa0bf432e7e1499adddde28e006
parent2afec32e9aff6c84c6181d83b85a20b13bbcfee6 (diff)
downloadpaludis-ef952e15c6447acfeff93c88809f7c10355818d0.tar.gz
paludis-ef952e15c6447acfeff93c88809f7c10355818d0.tar.xz
cave show --no-versions
-rw-r--r--src/clients/cave/cmd_show.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/clients/cave/cmd_show.cc b/src/clients/cave/cmd_show.cc
index c1a0e92..f2f9f71 100644
--- a/src/clients/cave/cmd_show.cc
+++ b/src/clients/cave/cmd_show.cc
@@ -96,6 +96,7 @@ namespace
args::SwitchArg a_flat;
args::SwitchArg a_raw_names;
args::SwitchArg a_one_version;
+ args::SwitchArg a_no_versions;
ShowCommandLine() :
g_object_options(main_options_section(), "Object Options", "Alter how objects are interpreted."),
@@ -123,7 +124,9 @@ namespace
"Display raw rather than human readable key names", true),
a_one_version(&g_display_options, "one-version", '1',
"Display only a single version of any package, rather than all installed and the "
- "best installable package", true)
+ "best installable package", true),
+ a_no_versions(&g_display_options, "no-versions", '0',
+ "Don't display any version-specific information", true)
{
add_usage_line("spec ...");
}
@@ -968,7 +971,10 @@ namespace
cout << endl;
}
- if (cmdline.a_one_version.specified())
+ if (cmdline.a_no_versions.specified())
+ {
+ }
+ else if (cmdline.a_one_version.specified())
{
if (best_installable)
do_one_package_id(cmdline, env, best_installable, all_installed->empty() ? make_null_shared_ptr() : *all_installed->rbegin(), true);