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

Parameter

Type

Description

parameterLongName

string

parameterScope

string

(Optional)

Returns:

CommandLineStringParameter

Remarks

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