| 235 | |
| 236 | namespace { |
| 237 | auto MutuallyExclusiveHandler(const TOpt* cur, const TOpt* other) { |
| 238 | return [cur, other](const TOptsParser* p) { |
| 239 | if (p->Seen(other)) { |
| 240 | throw TUsageException() |
| 241 | << "option " << cur->ToShortString() |
| 242 | << " can't appear together with option " << other->ToShortString(); |
| 243 | } |
| 244 | }; |
| 245 | } |
| 246 | } |
| 247 | |
| 248 | void TOpts::MutuallyExclusiveOpt(TOpt& opt1, TOpt& opt2) { |
no test coverage detected