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

CommandLineParameterProvider.getChoiceParameter() method

Returns the CommandLineChoiceParameter with the specified long name.

Signature:

getChoiceParameter(parameterLongName: string): CommandLineChoiceParameter;

Parameters

Parameter Type Description
parameterLongName string  

Returns:

CommandLineChoiceParameter

Remarks

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