aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/cmd_search.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/cave/cmd_search.cc')
-rw-r--r--src/clients/cave/cmd_search.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/clients/cave/cmd_search.cc b/src/clients/cave/cmd_search.cc
index 3d5c8b1f1..8c5d1b16d 100644
--- a/src/clients/cave/cmd_search.cc
+++ b/src/clients/cave/cmd_search.cc
@@ -338,6 +338,12 @@ SearchCommand::run(
show_args->push_back(*k);
}
+ /* also in cmd_match.cc */
+ bool default_names_and_descriptions((! cmdline.match_options.a_name.specified()) &&
+ (! cmdline.match_options.a_description.specified()) && (! cmdline.match_options.a_key.specified()));
+ if (default_names_and_descriptions || cmdline.match_options.a_description.specified())
+ show_args->push_back("--description-keys");
+
ShowCommand show_command;
return show_command.run(env, show_args);
}