| 210 | } |
| 211 | |
| 212 | void TOptsParseResult::HandleError() const { |
| 213 | Cerr << CurrentExceptionMessage() << Endl; |
| 214 | if (Parser_.Get()) { // parser initializing can fail (and we get here, see Init) |
| 215 | if (Parser_->Opts_->FindLongOption("help") != nullptr) { |
| 216 | Cerr << "Try '" << Parser_->ProgramName_ << " --help' for more information." << Endl; |
| 217 | } else { |
| 218 | PrintUsage(); |
| 219 | } |
| 220 | } |
| 221 | exit(1); |
| 222 | } |
| 223 | |
| 224 | void TOptsParseResultException::HandleError() const { |
| 225 | throw; |
nothing calls this directly
no test coverage detected