| 167 | } |
| 168 | |
| 169 | void FindUserTypos(const TString& arg, const TOpts* options) { |
| 170 | if (arg.size() < 4 || !arg.StartsWith("-")) { |
| 171 | return; |
| 172 | } |
| 173 | |
| 174 | for (auto opt: options->Opts_) { |
| 175 | for (auto name: opt->GetLongNames()) { |
| 176 | if ("-" + name == arg) { |
| 177 | throw TUsageException() << "did you mean `-" << arg << "` (with two dashes)?"; |
| 178 | } |
| 179 | } |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | void TOptsParseResult::Init(const TOpts* options, int argc, const char** argv) { |
| 184 | try { |
no test coverage detected