CommandOptionsAutoCommandPrefixAliases Property

Gets or sets a value that indicates whether unique prefixes of a command name or alias are automatically used as aliases.

Definition

Namespace: Ookii.CommandLine.Commands
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
C#
public bool AutoCommandPrefixAliases { get; set; }

Property Value

Boolean
to automatically use unique prefixes of a command as aliases for that argument; otherwise . The default value is .

Remarks

If this property is , the CommandManager class will consider any prefix that uniquely identifies a command by its name or one of its explicit aliases as an alias for that command. For example, given two commands "read" and "record", "rea" would be an alias for "read", and "rec" an alias for "record" (as well as "reco" and "recor"). Both "r" and "re" would not be an alias because they don't uniquely identify a single command.

See Also