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

ICommandLineChoiceDefinition interface

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


export interface ICommandLineChoiceDefinition extends IBaseCommandLineDefinition 


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.