diff options
author | René Korthaus <[email protected]> | 2018-01-14 18:01:38 +0100 |
---|---|---|
committer | René Korthaus <[email protected]> | 2018-01-14 18:01:38 +0100 |
commit | 030898c83f99d4de68747cb6e01d808c1ea5df71 (patch) | |
tree | 3457b8451f0bd29bf423f1900085d87a0ab136cc | |
parent | d50d9afe6688c458530d5ecfa536e21756b4e2ca (diff) |
Use search_map
-rw-r--r-- | src/cli/utils.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/cli/utils.cpp b/src/cli/utils.cpp index 62026d359..6238f0b03 100644 --- a/src/cli/utils.cpp +++ b/src/cli/utils.cpp @@ -87,12 +87,7 @@ class Print_Help final : public Command continue; } - if(groups_description.find(commands.first) != groups_description.end()) - { - desc = groups_description.at(commands.first); - } - oss << desc << ":\n"; - + oss << Botan::search_map(groups_description, desc, desc) << ":\n"; for(auto& cmd : commands.second) { oss << " " << std::setw(16) << std::left << cmd->cmd_name() << " " << cmd->description() << "\n"; |