| 23 | } |
| 24 | |
| 25 | std::string ArgParser::getNextOpt() |
| 26 | { |
| 27 | std::string str = getNext(); |
| 28 | size_t pos = str.find_first_not_of("-"); |
| 29 | if (pos == 0 || pos == std::string::npos) |
| 30 | throw std::invalid_argument("option expected"); |
| 31 | return str.substr(pos); |
| 32 | } |
| 33 | |
| 34 | template<> |
| 35 | std::string ArgParser::getNextValue() |