Skip to main content

main_with

Function main_with 

Source
pub fn main_with(
    bin: &str,
    format: OutputFormat,
    color: ColorMode,
    body: impl FnOnce() -> Result<()>,
) -> ExitCode
Expand description

Same as main with an explicit format and color for the error path.