Home > @rushstack/ts-command-line > ICommandLineChoiceDefinition > defaultValue
ICommandLineChoiceDefinition.defaultValue property
The default value which will be used if the parameter is omitted from the command line.
Signature:
defaultValue?: string;
Remarks
If a default value is specified, then IBaseCommandLineDefinition.required must not be true. Instead, a custom error message should be used to report cases where a default value was not available.