Rush StackShopBlogEvents
Skip to main content

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

CommandLineParameterProvider.getChoiceListParameter() method

Returns the CommandLineChoiceListParameter with the specified long name.

Signature:

getChoiceListParameter(parameterLongName: string, parameterScope?: string): CommandLineChoiceListParameter;

Parameters

ParameterTypeDescription
parameterLongNamestring
parameterScopestring(Optional)

Returns:

CommandLineChoiceListParameter

Remarks

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