Home > @microsoft/ts-command-line > CommandLineParameterProvider > defineIntegerParameter

CommandLineParameterProvider.defineIntegerParameter() method

Defines a command-line parameter whose value is an integer.

Signature:

defineIntegerParameter(definition: ICommandLineIntegerDefinition): CommandLineIntegerParameter;

Parameters

Parameter Type Description
definition ICommandLineIntegerDefinition  

Returns:

CommandLineIntegerParameter

Remarks

Example: example-tool –max-attempts 5