effect-io-ai

Package: @effect/cli
Module: Args

Args.choice

Creates a choice argument.

Can optionally provide a custom argument name (defaults to "choice").

Signature

declare const choice: <A>(choices: ReadonlyArray<[string, A]>, config?: Args.BaseArgsConfig) => Args<A>

Source

Since v1.0.0