Rush StackShopBlogEvents
Skip to main content

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

CommandLineParameterProvider.getStringParameter() method

Returns the CommandLineStringParameter with the specified long name.

Signature:

getStringParameter(parameterLongName: string, parameterScope?: string): CommandLineStringParameter;

Parameters

ParameterTypeDescription
parameterLongNamestring
parameterScopestring(Optional)

Returns:

CommandLineStringParameter

Remarks

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