Edit

Share via


Argument Constructors

Definition

Overloads

Argument()

Initializes a new instance of the Argument class.

Argument(String)

Initializes a new instance of the Argument class.

Argument(String, String)

Initializes a new instance of the Argument class.

Argument()

Source:
Argument.cs

Initializes a new instance of the Argument class.

protected:
 Argument();
protected Argument();
Protected Sub New ()

Applies to

Argument(String)

Source:
Argument.cs

Initializes a new instance of the Argument class.

protected:
 Argument(System::String ^ name);
protected Argument(string name);
new System.CommandLine.Argument : string -> System.CommandLine.Argument
Protected Sub New (name As String)

Parameters

name
String

The name of the argument. This can be used to look up the parsed value and is displayed in help

Applies to

Argument(String, String)

Source:
Argument.cs

Initializes a new instance of the Argument class.

protected Argument(string? name = default, string? description = default);
new System.CommandLine.Argument : string * string -> System.CommandLine.Argument
Protected Sub New (Optional name As String = Nothing, Optional description As String = Nothing)

Parameters

name
String

The name of the argument.

description
String

The description of the argument, shown in help.

Applies to