| 23 | } |
| 24 | |
| 25 | std::vector<std::string> collect_args(int argc, char ** argv, const std::string & name) { |
| 26 | std::vector<std::string> values; |
| 27 | for (int i = 1; i + 1 < argc; ++i) { |
| 28 | if (argv[i] == name) { |
| 29 | values.emplace_back(argv[i + 1]); |
| 30 | } |
| 31 | } |
| 32 | return values; |
| 33 | } |
| 34 | |
| 35 | std::unordered_map<std::string, std::string> collect_key_value_args( |
| 36 | int argc, |
no outgoing calls
no test coverage detected