Rush StackShopBlogEvents
Skip to main content

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

CommandLineParameterProvider.getChoiceParameter() method

Returns the CommandLineChoiceParameter with the specified long name.

Signature:

getChoiceParameter(parameterLongName: string, parameterScope?: string): CommandLineChoiceParameter;

Parameters

Parameter

Type

Description

parameterLongName

string

parameterScope

string

(Optional)

Returns:

CommandLineChoiceParameter

Remarks

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