Skip to main content

format_help

Function format_help 

Source
pub fn format_help(
    extension_flags: Option<&[ExtensionFlagHelp]>,
    style: HelpStyle,
) -> String
Expand description

Format the full help text without writing to stdout.

When style.styled is false the output is plain text (tests / redirected consumers). When true, section headers use anstyle bold, matching chalk in the TypeScript printHelp path.