| 58 | } |
| 59 | |
| 60 | void set_option_from_arg( |
| 61 | int argc, |
| 62 | char ** argv, |
| 63 | const std::string & arg_name, |
| 64 | const std::string & option_key, |
| 65 | std::unordered_map<std::string, std::string> & options) { |
| 66 | if (const auto value = find_arg(argc, argv, arg_name)) { |
| 67 | set_option(options, option_key, *value); |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | int parse_int_arg(int argc, char ** argv, const std::string & name, int fallback) { |
| 72 | if (const auto value = find_arg(argc, argv, name)) { |
no test coverage detected