Home > @microsoft/ts-command-line > ICommandLineChoiceDefinition

ICommandLineChoiceDefinition interface

For use with CommandLineParser, this interface represents a parameter which is constrained to a list of possible options

Signature:

export interface ICommandLineChoiceDefinition extends IBaseCommandLineDefinition 

Properties

Property Type Description
alternatives string[] A list of strings (which contain no spaces), of possible options which can be selected
defaultValue string The default value which will be used if the parameter is omitted from the command line.