Skip to content

HelpTheme

Semantic styling roles for help output.

Roles that appear inside wrap-eligible description text (defaultValue, annotation, deprecated) should stick to foreground colors and dim — a styled span may cross a soft-wrap boundary, and while color/dim carry invisibly across the continuation indent, underline/inverse/background styles would visibly paint it.

Signatures

ts
interface HelpTheme {}

Members

Properties

annotation

Metadata annotations: [env: X], [config: a.b], [prompt], [required], (default).

ts
annotation: Formatter;

arg

Positional arg tokens: <file>, [out]....

ts
arg: Formatter;

command

Command names in Commands: tables.

ts
command: Formatter;

defaultValue

Default-value annotations: (default: 8080).

ts
defaultValue: Formatter;

deprecated

Deprecation labels: [deprecated], [deprecated: use --x].

ts
deprecated: Formatter;

examplePrompt

The $ prompt marker in Examples:.

ts
examplePrompt: Formatter;

flag

Flag forms in the flags table: -f, --force.

ts
flag: Formatter;

headerName

Program name in the root-help header.

ts
headerName: Formatter;

headerVersion

Version (vX.Y.Z) in the root-help header.

ts
headerVersion: Formatter;

placeholder

Grammar tokens: <string>, <command>, [flags], value hints.

ts
placeholder: Formatter;

sectionTitle

Section headings: Usage:, Arguments:, Flags:, Commands:, Examples:, Global options:.

ts
sectionTitle: Formatter;

usageBin

Binary / command path in the usage line.

ts
usageBin: Formatter;

See Also

Released under the MIT License.