Table of Contents

CliNamer.AddShortFormAlias Method

Definition

Namespace
DotMake.CommandLine
Assembly
DotMake.CommandLine.dll

AddShortFormAlias(Command, string, string)

Adds an auto or a specific short form alias for a command name for a property by using current DotMake.CommandLine.CliNamer.nameCasingConvention.

Auto short form alias is added only when current DotMake.CommandLine.CliNamer.shortFormAutoGenerate contains Commands and it is shorter than command name.

public void AddShortFormAlias(Command command, string symbolName, string specificAlias = null)

Parameters

command Command
symbolName string
specificAlias string

AddShortFormAlias(Option, string, string)

Adds an auto or a specific short form alias for an option name for a property by using current DotMake.CommandLine.CliNamer.nameCasingConvention and DotMake.CommandLine.CliNamer.shortFormPrefixConvention.

Auto short form alias is added only when current DotMake.CommandLine.CliNamer.shortFormAutoGenerate contains Options and it is shorter than option name.

public void AddShortFormAlias(Option option, string symbolName, string specificAlias = null)

Parameters

option Option
symbolName string
specificAlias string