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

CommandLineParameterProvider.getFlagParameter() method

Returns the CommandLineFlagParameter with the specified long name.

Signature:

getFlagParameter(parameterLongName: string): CommandLineFlagParameter;

Parameters

Parameter Type Description
parameterLongName string  

Returns:

CommandLineFlagParameter

Remarks

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