Home > @rushstack/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 |
Remarks
This method throws an exception if the parameter is not defined.