From 030898c83f99d4de68747cb6e01d808c1ea5df71 Mon Sep 17 00:00:00 2001 From: René Korthaus Date: Sun, 14 Jan 2018 18:01:38 +0100 Subject: Use search_map --- src/cli/utils.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/cli/utils.cpp') 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"; -- cgit v1.2.3