| 79 | } |
| 80 | |
| 81 | std::string getArgString(const std::string &s) |
| 82 | { |
| 83 | std::vector<std::string> tokens = rkcommon::utility::split(s, '='); |
| 84 | if (tokens.size() < 2) { |
| 85 | std::stringstream ss; |
| 86 | ss << "Invalid format for command-line argument " << s |
| 87 | << ". Should be formatted --osp:<parameter>=<value>"; |
| 88 | postStatusMsg(ss, OSP_LOG_WARNING); |
| 89 | return ""; |
| 90 | } else { |
| 91 | return tokens.back(); |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | int getArgInt(const std::string &s) |
| 96 | { |
no test coverage detected