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