Edit

Share via


Option(String, String[]) Constructor

Definition

Initializes a new instance of the Option class.

protected:
 Option(System::String ^ name, cli::array <System::String ^> ^ aliases);
protected Option(string name, string[] aliases);
new System.CommandLine.Option : string * string[] -> System.CommandLine.Option
Protected Sub New (name As String, aliases As String())

Parameters

name
String

The name of the option. This is used during parsing and is displayed in help.

aliases
String[]

Optional aliases by which the option can be specified on the command line.

Applies to