856f865cf98d
clap-error-message-test.yml
id: clap-error-message
valid:
- cmd.error(ErrorKind::ArgumentConflict, UsageError::BridgeRoots)
- cmd.error(ErrorKind::ArgumentConflict, Conflict { a, b })
- sub.error(kind, self)
- log.error("not a clap error")
- cmd.error(ErrorKind::ValueValidation, e.to_owned())
invalid:
- cmd.error(ErrorKind::ArgumentConflict, "configure automation roots on the desktop app")
- sub.error(ErrorKind::MissingRequiredArgument, format!("{flag} requires {transport}"))
- sub.error(ErrorKind::ArgumentConflict, BRIDGE_ROOTS)
- cmd.error(ErrorKind::InvalidValue, e.to_string())
- cmd.error(ErrorKind::InvalidValue, String::from("bad value"))
- cmd.error(ErrorKind::InvalidValue, "bad value".to_owned())
- clap::Error::raw(ErrorKind::InvalidValue, "bad value")
No file is open. Choose one in the tree, or press Ctrl+O (⌘O on a Mac) to find one by name.
Syntax highlighting could not load. The unmodified read-only text remains available above.