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

CommandLineParameterProvider.defineStringParameter() method

Defines a command-line parameter whose value is a single text string.

Signature:

defineStringParameter(definition: ICommandLineStringDefinition): CommandLineStringParameter;

Parameters

Parameter Type Description
definition ICommandLineStringDefinition  

Returns:

CommandLineStringParameter

Remarks

Example: example-tool –message “Hello, world!”