MCPcopy Create free account
hub / github.com/RenderKit/oidn / getNextOpt

Method getNextOpt

apps/utils/arg_parser.cpp:25–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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()

Callers 2

mainFunction · 0.80
mainFunction · 0.80

Calls 1

substrMethod · 0.80

Tested by

no test coverage detected