Lines Matching defs:message
69 message: Option<Message>,
86 pub fn raw(kind: ErrorKind, message: impl std::fmt::Display) -> Self {
87 Self::new(kind).set_message(message.to_string())
90 /// Format the existing message with the Command's context
95 if let Some(message) = self.inner.message.as_mut() {
96 message.format(cmd, usage);
101 /// Create an error with a pre-defined message
130 message: None,
197 /// Should the message be written to `stdout` or not?
257 /// Render the error message to a [`StyledStr`].
283 pub(crate) fn set_message(mut self, message: impl Into<Message>) -> Self {
284 self.inner.message = Some(message.into());
744 if let Some(message) = self.inner.message.as_ref() {
745 message.formatted()
780 // Assuming `self.message` already has a trailing newline, from `try_help` or similar
801 let mut message = String::new();
802 std::mem::swap(s, &mut message);
804 let styled = format::format_error_message(&message, Some(cmd), usage);