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

CommandLineIntegerParameter class

The data type returned by CommandLineParameterProvider.defineIntegerParameter().


export declare class CommandLineIntegerParameter extends CommandLineParameterWithArgument 


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.


Property Modifiers Type Description
defaultValue   number | undefined The default value which will be used if the parameter is omitted from the command line.
kind   CommandLineParameterKind Indicates the type of parameter.
value   number | undefined Returns the argument value for an integer parameter that was parsed from the command line.


Method Modifiers Description
appendToArgList(argList)   Append the parsed values to the provided string array.