| 308 | class ExtrasError : public ParseError { |
| 309 | CLI11_ERROR_DEF(ParseError, ExtrasError) |
| 310 | explicit ExtrasError(std::vector<std::string> args) |
| 311 | : ExtrasError((args.size() > 1 ? "The following arguments were not expected: " |
| 312 | : "The following argument was not expected: ") + |
| 313 | detail::join(args, " "), |
| 314 | ExitCodes::ExtrasError) {} |
| 315 | ExtrasError(const std::string &name, std::vector<std::string> args) |
| 316 | : ExtrasError(name, |
| 317 | (args.size() > 1 ? "The following arguments were not expected: " |