Skip to main content

main_with_help

Function main_with_help 

Source
pub fn main_with_help<C: CommandFactory>(
    bin: &str,
    body: impl FnOnce() -> Result<()>,
) -> ExitCode
Expand description

Emit styled help when -h/--help is present, then run body.