RoadmapShopEvents
Skip to main content

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

CommandLineIntegerParameter class

The data type returned by CommandLineParameterProvider.defineIntegerParameter() .

Signature:
export declare class CommandLineIntegerParameter extends CommandLineParameterWithArgument
Extends: [CommandLineParameterWithArgument](/pages/ts-command-line.commandlineparameterwithargument)

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 CommandLineIntegerParameter class.

Properties

PropertyModifiersTypeDescription
defaultValuenumber | undefinedThe default value which will be used if the parameter is omitted from the command line.
kindCommandLineParameterKindIndicates the type of parameter.
valuenumber | undefinedReturns the argument value for an integer parameter that was parsed from the command line.

Methods

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