diff options
author | 2010-10-22 15:43:50 +0100 | |
---|---|---|
committer | 2010-10-23 14:41:32 +0100 | |
commit | 797336b15ccbe303daae8acd85591180f0cf6502 (patch) | |
tree | 176dc2b189792a24b67bce97ce556fea53c56691 | |
parent | 1a198cd96010545bdaef3f031ece5a1b793da09d (diff) | |
download | paludis-797336b15ccbe303daae8acd85591180f0cf6502.tar.gz paludis-797336b15ccbe303daae8acd85591180f0cf6502.tar.xz |
cave show --no-keys
Fixes: ticket:1017
-rw-r--r-- | src/clients/cave/cmd_show.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/clients/cave/cmd_show.cc b/src/clients/cave/cmd_show.cc index 1fe1ecc9a..eac979da9 100644 --- a/src/clients/cave/cmd_show.cc +++ b/src/clients/cave/cmd_show.cc @@ -91,6 +91,7 @@ namespace args::EnumArg a_type; args::ArgsGroup g_key_options; + args::SwitchArg a_no_keys; args::SwitchArg a_complex_keys; args::SwitchArg a_internal_keys; args::SwitchArg a_significant_keys_only; @@ -114,6 +115,8 @@ namespace ("package", 'p', "Treat the objects as an unwildcarded package spec, showing all matches for wildcards"), "auto"), g_key_options(main_options_section(), "Key Options", "Control which keys are shown."), + a_no_keys(&g_key_options, "no-keys", 'n', + "Do not show any metadata keys", true), a_complex_keys(&g_key_options, "complex-keys", 'c', "Show complex keys", true), a_internal_keys(&g_key_options, "internal-keys", 'i', @@ -298,7 +301,7 @@ namespace if (key->type() != mkt_significant && cmdline.a_significant_keys_only.specified()) return false; - return true; + return ! cmdline.a_no_keys.specified(); } std::string added_or_changed_string( |