HelpExtensions.Names Method

Definition

Overloads

Name Description
Names(Command)

Get all names for a command, including the primary name and all aliases

Names(Option)

Get all names for an option, including the primary name and all aliases

Names(Command)

Source:
HelpGenerationExtensions.cs

Get all names for a command, including the primary name and all aliases

public:
[System::Runtime::CompilerServices::Extension]
 static cli::array <System::String ^> ^ Names(System::CommandLine::Command ^ command);
public static string[] Names(this System.CommandLine.Command command);
static member Names : System.CommandLine.Command -> string[]
<Extension()>
Public Function Names (command As Command) As String()

Parameters

command
Command

Returns

String[]

Applies to

Names(Option)

Source:
HelpGenerationExtensions.cs

Get all names for an option, including the primary name and all aliases

public:
[System::Runtime::CompilerServices::Extension]
 static cli::array <System::String ^> ^ Names(System::CommandLine::Option ^ option);
public static string[] Names(this System.CommandLine.Option option);
static member Names : System.CommandLine.Option -> string[]
<Extension()>
Public Function Names (option As Option) As String()

Parameters

option
Option

Returns

String[]

Applies to