Skip to main content

render_help

Function render_help 

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

Render the curated help surface to a String instead of stdout.

print_help is a thin write_stdout(&render_help(..)) wrapper over this, so the bytes are identical. Extracted so in-process tests can assert on help prose without spawning the binary (HeddleCo/heddle#381).