Skip to main content

err

Function err 

Source
pub fn err<T: Display>(value: T)
Available on crate feature std only.
Expand description

Print value to standard error, followed by a newline.

The standard-error counterpart of out, with the same contract: no parsing, no allocation for plain strings, and write errors silently ignored.

ยงExamples

use cli_forge::{err, style};

err("something went wrong");
err(style("ERROR:").red().bold());