CliOptionAttributeAliases Property

Gets or sets the set of alternative strings that can be used on the command line to specify the option.

If you want to set a single alias, you can use Alias.

When manually setting an alias, if you don't specify a prefix, it will be prefixed automatically according to NamePrefixConvention (e.g. --option, -option or /option) unless it's set to None.

The aliases will be also displayed in usage help of the command line application.

Definition

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

Property Value

String

See Also