| 158 | } |
| 159 | } |
| 160 | return match; |
| 161 | } |
| 162 | |
| 163 | std::optional<std::string> find_option( |
| 164 | const std::unordered_map<std::string, std::string> & options, |
| 165 | std::initializer_list<std::string_view> keys) { |
| 166 | const auto match = find_option_match(options, keys); |
| 167 | return match.has_value() ? std::optional<std::string>(match->value) : std::nullopt; |
| 168 | } |
| 169 | |
| 170 | bool parse_bool_option(const std::string & value, std::string_view key) { |
no test coverage detected