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

CommandLineParameterProvider.getStringParameter() method

Returns the CommandLineStringParameter with the specified long name.

Signature:

getStringParameter(parameterLongName: string): CommandLineStringParameter;

Parameters

Parameter Type Description
parameterLongName string  

Returns:

CommandLineStringParameter

Remarks

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