Home > @rushstack/ts-command-line > ICommandLineIntegerDefinition > defaultValue
ICommandLineIntegerDefinition.defaultValue property
The default value which will be used if the parameter is omitted from the command line.
Signature:
defaultValue?: number;
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.