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): CommandLineChoiceListParameter;

Parameters

ParameterTypeDescription
parameterLongNamestring
Returns:

CommandLineChoiceListParameter

Remarks

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