RoadmapShopEvents
Skip to main content

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

CommandLineParameterProvider.defineStringListParameter() method

Defines a command-line parameter whose argument is a single text string. The parameter can be specified multiple times to build a list.

Signature:
defineStringListParameter(definition: ICommandLineStringListDefinition): CommandLineStringListParameter;

Parameters

ParameterTypeDescription
definitionICommandLineStringListDefinition
Returns:

CommandLineStringListParameter

Remarks

Example usage of a string list parameter:

example-tool --add file1.txt --add file2.txt --add file3.txt