On this page
Help rendering at app/group/command levels, byte-identical to the siblings (Go help.go and Python's _format_app_help/_format_group_help family).
#typescript/src/help
#typescript/src/help
Help rendering at app/group/command levels, byte-identical to the siblings (Go help.go and Python's _format_app_help/_format_group_help family). The output is pinned by conformance/cases/help.json plus the help expectations scattered across the other case files.
Sibling divergences resolved here:
- App-level "Global flags:" section: Python renders it (name/short + help,
no meta), Go omits it entirely; no conformance case covers it. TS follows Python (the divergence ground truth).
- "[optional]" for explicitly-optional flags (default: null): Go-only
behavior (the Default(nil) fix); Python cannot express it. TS supports default: null, so it adopts the Go rendering.
- List carriers render "[repeatable]" when declared with repeatable: true
(the sibling scalar-repeatable shape) and "[list]" otherwise (the sibling compound-list shape).
#formatVersion
export function formatVersion(app: AppImpl): string#formatAppHelp
export function formatAppHelp(app: AppImpl): string#formatGroupHelp
export function formatGroupHelp(#buildFlagSpec
export function buildFlagSpec(f: AnyFlag): string Left-column spec string for a flag (e.g. "--target, -t
#buildFlagMeta
export function buildFlagMeta(f: AnyFlag): stringBracketed metadata suffix for a flag (" [x] [y]" form).
#formatCommandHelp
export function formatCommandHelp(