| 101 | } |
| 102 | |
| 103 | std::optional<std::string> find_option( |
| 104 | const std::unordered_map<std::string, std::string> & options, |
| 105 | std::initializer_list<std::string_view> keys) { |
| 106 | const auto match = find_option_match(options, keys); |
| 107 | return match.has_value() ? std::optional<std::string>(match->value) : std::nullopt; |
| 108 | } |
| 109 | |
| 110 | bool parse_bool_option(const std::string & value, std::string_view key) { |
| 111 | if (value == "true" || value == "1" || value == "yes" || value == "on") { |
no test coverage detected