Option(String, String[]) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.