strictcli v0.39.0 /typescript/src/help
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

TS typescript
export function formatVersion(app: AppImpl): string

#formatAppHelp

TS typescript
export function formatAppHelp(app: AppImpl): string

#formatGroupHelp

TS typescript
export function formatGroupHelp(

#buildFlagSpec

TS typescript
export function buildFlagSpec(f: AnyFlag): string

Left-column spec string for a flag (e.g. "--target, -t ").

#buildFlagMeta

TS typescript
export function buildFlagMeta(f: AnyFlag): string

Bracketed metadata suffix for a flag (" [x] [y]" form).

#formatCommandHelp

TS typescript
export function formatCommandHelp(
Search