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

ParameterTypeDescription
parameterLongNamestring
parameterScopestring(Optional)

Returns:

CommandLineChoiceParameter

Remarks

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