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