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