Skip to main content

render_view_at_styled

Function render_view_at_styled 

Source
pub fn render_view_at_styled(
    spec: &Spec<'_>,
    route: &[&Command<'_>],
    view: &ViewMeta<'_>,
    long: bool,
    style: Style,
) -> Option<String>
Expand description

Render help through a spec-declared executable view.

The parser still walks the canonical static tables. This changes only the cold presentation: the promoted command becomes the displayed root and only the root globals declared by the view remain inherited.