Skip to content

OptionDef

Defined in: packages/core/src/commands.ts:103

One option of a command. T is the type the handler receives and C the configuration it was made with, which decides whether it can be missing. Make one with option.

T

C

readonly __type: T

Defined in: packages/core/src/commands.ts:109

Type only: the type the handler receives. Never present at runtime.


readonly config: C

Defined in: packages/core/src/commands.ts:105


readonly kind: OptionKind

Defined in: packages/core/src/commands.ts:104


readonly optional words?: readonly string[]

Defined in: packages/core/src/commands.ts:107

Choices for option.choice; undefined for the other kinds.