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
Parameter | Type | Description |
---|---|---|
parameterLongName | string | |
parameterScope | string | (Optional) |
Returns:
CommandLineChoiceListParameter
Remarks
This method throws an exception if the parameter is not defined.