Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/ts-command-line > CommandLineParameterProvider > getIntegerParameter

CommandLineParameterProvider.getIntegerParameter() method

Returns the CommandLineIntegerParameter with the specified long name.

Signature:

getIntegerParameter(parameterLongName: string, parameterScope?: string): CommandLineIntegerParameter;

Parameters

ParameterTypeDescription
parameterLongNamestring
parameterScopestring(Optional)

Returns:

CommandLineIntegerParameter

Remarks

This method throws an exception if the parameter is not defined.