Rush StackShopBlogEvents
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

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
kindreadonlyCommandLineParameterKindIndicates the type of parameter.
valuereadonlybooleanReturns 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.