Skip to main content

print_help

Function print_help 

Source
pub fn print_help(cmd: &Command, topic: &[String]) -> Result<()>
Expand description

Entry point for the Commands::Help { topics } dispatch arm AND the bare-help intercept in main.rs. Routes between everyday / advanced / topic surfaces and falls through to clap-derived help for command paths without a dedicated topic.

All output goes to stdout (this is help, not diagnostic). Returns Ok(()) even for unknown topics; the printer surfaces the suggestion text rather than erroring.