RoadmapShopEvents
Skip to main content

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

ParameterTypeDescription
parameterLongNamestring
parameterScopestring(Optional)

Returns:

CommandLineFlagParameter

Remarks

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