RoadmapShopEvents
Skip to main content

Home > @rushstack/ts-command-line > CommandLineStringListParameter

CommandLineStringListParameter class

The data type returned by CommandLineParameterProvider.defineStringListParameter() .

Signature:
export declare class CommandLineStringListParameter extends CommandLineParameterWithArgument
Extends: [CommandLineParameterWithArgument](/pages/ts-command-line.commandlineparameterwithargument)

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the CommandLineStringListParameter class.

Properties

PropertyModifiersTypeDescription
kindCommandLineParameterKindIndicates the type of parameter.
valuesReadonlyArray<string>Returns the string arguments for a string list parameter that was parsed from the command line.

Methods

MethodModifiersDescription
appendToArgList(argList)Append the parsed values to the provided string array.