Trait clap::error::ErrorFormatter
source · [−]pub trait ErrorFormatter: Sized {
fn format_error(error: &Error<Self>) -> StyledStr;
}
Expand description
Defines how to format an error for displaying to the user
Required Methods
sourcefn format_error(error: &Error<Self>) -> StyledStr
fn format_error(error: &Error<Self>) -> StyledStr
Stylize the error for the terminal
Implementors
impl ErrorFormatter for KindFormatter
impl ErrorFormatter for RichFormatter
Available on crate feature
error-context
only.