pub fn display_error(error: &DynamicCliError)Expand description
Print an error to stderr in a user-friendly way
Writes the formatted error (with ANSI colors) to stderr.
ยงExample
use dynamic_cli::error::{display_error, ParseError};
let error = ParseError::UnknownCommand {
command: "simulat".to_string(),
suggestions: vec!["simulate".to_string()],
};
display_error(&error.into());