Skip to content

NumberArgDefinition ​

Definition of a number arg.

Signatures ​

ts
interface NumberArgDefinition extends ArgDefinitionBase {}

Members ​

Properties ​

defaultValue ​

Runtime default value.

ts
defaultValue?: unknown;

deprecated ​

Deprecation marker. true deprecates without a message, a string carries the migration guidance.

ts
deprecated?: string | true;

description ​

Human-readable description for help text.

ts
description?: string;

envVar ​

Environment variable name for env resolution.

ts
envVar?: string;

kind ​

Kind discriminator.

ts
kind: "number";

numberConstraints ​

Numeric constraints enforced at the parse and resolution boundaries.

ts
numberConstraints?: NumberConstraints;

presence ​

Presence state.

ts
presence?: "optional" | "required" | "defaulted";

stdinMode ​

Whether this arg may read from stdin during resolution.

ts
stdinMode?: boolean;

variadic ​

Whether this arg consumes all remaining positionals.

ts
variadic?: boolean;

See Also ​

Released under the MIT License.