MCPcopy Create free account
hub / github.com/Tencent/TAD_Sim / ExtrasError

Class ExtrasError

simcore/framework/src/cli/cli.hpp:766–779  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

764
765/// Thrown when too many positionals or options are found
766class ExtrasError : public ParseError {
767 CLI11_ERROR_DEF(ParseError, ExtrasError)
768 explicit ExtrasError(std::vector<std::string> args)
769 : ExtrasError((args.size() > 1 ? "The following arguments were not expected: "
770 : "The following argument was not expected: ") +
771 detail::rjoin(args, " "),
772 ExitCodes::ExtrasError) {}
773 ExtrasError(const std::string &name, std::vector<std::string> args)
774 : ExtrasError(name,
775 (args.size() > 1 ? "The following arguments were not expected: "
776 : "The following argument was not expected: ") +
777 detail::rjoin(args, " "),
778 ExitCodes::ExtrasError) {}
779};
780
781/// Thrown when extra values are found in an INI file
782class ConfigError : public ParseError {

Callers 2

_process_extrasMethod · 0.85
_parse_positionalMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected