| 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> |
nothing calls this directly
no test coverage detected