Optional
action?: ActionA custom action for the argument.
Optional
alias?: stringAn optional alias for the argument.
Optional
choices?: unknown[]Allowed values for the argument.
Optional
const?: unknownA constant value for the argument.
Optional
default?: unknownThe default value of the argument.
Optional
description?: stringA description of the argument.
The name of the argument.
Optional
nargs?: NArgsWhether the argument is required.
Optional
required?: booleanWhether the argument is required.
The type of the argument.
Optional
validator?: (value: unknown) => booleanA custom validator function for the argument value.
Configuration for an argument.