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-31 10:18:33 +0100
commitc1666ce6eff49f7062134fa33aa8c45c3c8079b6 (patch)
tree4e4eed6bc8b69d66749108fbf12b01c0226ce29f
parent4c06b19c6b480ff271e1c05501dec6f30f63b8f1 (diff)
downloadpaludis-c1666ce6eff49f7062134fa33aa8c45c3c8079b6.tar.gz
paludis-c1666ce6eff49f7062134fa33aa8c45c3c8079b6.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 c1a0e9228..f2f9f7109 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);