Skip to main content

through_stdout

Function through_stdout 

Source
pub fn through_stdout(print: impl FnOnce() -> Result<()>)
Expand description

Run something that prints to stdout by itself (clap’s help and version, which choose their own colours) under the same policy: a failed write is recorded, and nothing is written once stdout has failed.