RoadmapShopEvents
Skip to main content

Home > @rushstack/ts-command-line > CommandLineFlagParameter

CommandLineFlagParameter class

The data type returned by CommandLineParameterProvider.defineFlagParameter() .

Signature:
export declare class CommandLineFlagParameter extends CommandLineParameter
Extends: [CommandLineParameter](/pages/ts-command-line.commandlineparameter)

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the CommandLineFlagParameter class.

Properties

PropertyModifiersTypeDescription
kindCommandLineParameterKindIndicates the type of parameter.
valuebooleanReturns a boolean indicating whether the parameter was included in the command line.

Methods

MethodModifiersDescription
appendToArgList(argList)Append the parsed values to the provided string array.