diff options
Diffstat (limited to 'src/clients')
-rw-r--r-- | src/clients/cave/cmd_match.cc | 1 | ||||
-rw-r--r-- | src/clients/cave/cmd_search.cc | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/clients/cave/cmd_match.cc b/src/clients/cave/cmd_match.cc index 836d13f03..1abf07409 100644 --- a/src/clients/cave/cmd_match.cc +++ b/src/clients/cave/cmd_match.cc @@ -384,6 +384,7 @@ MatchCommand::run_hosted( std::list<std::string> texts; + /* also in cmd_search.cc */ bool default_names_and_descriptions((! match_options.a_name.specified()) && (! match_options.a_description.specified()) && (! match_options.a_key.specified())); 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); } |