RoadmapShopEvents
Skip to main content

Home > @rushstack/ts-command-line > CommandLineParameterProvider > defineIntegerListParameter

CommandLineParameterProvider.defineIntegerListParameter() method

Defines a command-line parameter whose argument is an integer. The parameter can be specified multiple times to build a list.

Signature:
defineIntegerListParameter(definition: ICommandLineIntegerListDefinition): CommandLineIntegerListParameter;

Parameters

ParameterTypeDescription
definitionICommandLineIntegerListDefinition
Returns:

CommandLineIntegerListParameter

Remarks

Example usage of an integer list parameter:

example-tool --avoid 4 --avoid 13