CliArgumentAttributeAllowedValues Property

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

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

Note that if the 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