CliOptionAttributeAllowedValues Property

Gets or sets the list of allowed values for an option.

Configures an option to accept only the specified values, and to suggest them as command line completions.

Note that if the option's argument type is an enum, values are automatically added.

Definition

Namespace: DotMake.CommandLine
Assembly: DotMake.CommandLine (in DotMake.CommandLine.dll) Version: 1.8.7
C#
public string[] AllowedValues { get; set; }

Property Value

String

See Also