| 48 | } |
| 49 | |
| 50 | void set_option( |
| 51 | std::unordered_map<std::string, std::string> & options, |
| 52 | const std::string & key, |
| 53 | const std::string & value) { |
| 54 | const auto [it, inserted] = options.emplace(key, value); |
| 55 | if (!inserted && it->second != value) { |
| 56 | throw std::runtime_error("conflicting request option value for " + key); |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | void set_option_from_arg( |
| 61 | int argc, |
no outgoing calls
no test coverage detected