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

CommandLineParameterProvider.defineStringListParameter() method

Defines a command-line parameter whose value is one or more text strings.

Signature:

defineStringListParameter(definition: ICommandLineStringListDefinition): CommandLineStringListParameter;

Parameters

Parameter Type Description
definition ICommandLineStringListDefinition  

Returns:

CommandLineStringListParameter

Remarks

Example: example-tool –add file1.txt –add file2.txt –add file3.txt