MCPcopy Create free account
hub / github.com/catboost/catboost / OptFromString

Function OptFromString

library/cpp/getopt/small/last_getopt_support.h:165–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163
164 template <typename T, typename TSomeOpt>
165 T OptFromString(const TStringBuf& value, const TSomeOpt opt) {
166 try {
167 return OptFromStringImpl<T>(value);
168 } catch (...) {
169 throw TUsageException() << "failed to parse opt " << OptToString(opt) << " value " << TString(value).Quote() << ": " << CurrentExceptionMessage();
170 }
171 }
172
173 // wrapper of FromString<T> that prints nice message about option used
174 template <typename T, typename TSomeOpt>

Callers

nothing calls this directly

Calls 3

TUsageExceptionClass · 0.85
OptToStringFunction · 0.85
CurrentExceptionMessageFunction · 0.85

Tested by

no test coverage detected