CliOptionAttributeAlias Property

Gets or sets the set of an alternative string that can be used on the command line to specify the option. When set, this will override the auto-generated short form alias.

If you want to set multiple aliases, you can use Aliases.

When manually setting a short form alias, if you don't specify a prefix, it will be prefixed automatically according to ShortFormPrefixConvention (e.g. -o or --o or /o) 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 Alias { get; set; }

Property Value

String

See Also