Home > @rushstack/ts-command-line > CommandLineParameterProvider > getStringParameter
CommandLineParameterProvider.getStringParameter() method
Returns the CommandLineStringParameter with the specified long name.
Signature:
getStringParameter(parameterLongName: string, parameterScope?: string): CommandLineStringParameter;
Parameters
Parameter | Type | Description |
---|---|---|
parameterLongName | string | |
parameterScope | string | (Optional) |
Returns:
Remarks
This method throws an exception if the parameter is not defined.