| 118 | } |
| 119 | |
| 120 | std::optional<int> parse_int_option( |
| 121 | const std::unordered_map<std::string, std::string> & options, |
| 122 | std::initializer_list<std::string_view> keys) { |
| 123 | if (const auto match = find_option_match(options, keys)) { |
| 124 | return parse_int_value(match->value, match->key); |
| 125 | } |
| 126 | return std::nullopt; |
| 127 | } |
| 128 | |
| 129 | std::optional<float> parse_float_option( |
| 130 | const std::unordered_map<std::string, std::string> & options, |
no test coverage detected