Szerkesztés

Megosztás a következőn keresztül:


ArgumentExtensions.Parse Method

Definition

Overloads

Parse(Argument, String)

Parses a command line string value using an argument.

Parse(Argument, String[])

Parses a command line string value using an argument.

Parse(Argument, String)

Parses a command line string value using an argument.

public:
[System::Runtime::CompilerServices::Extension]
 static System::CommandLine::Parsing::ParseResult ^ Parse(System::CommandLine::Argument ^ argument, System::String ^ commandLine);
public static System.CommandLine.Parsing.ParseResult Parse (this System.CommandLine.Argument argument, string commandLine);
static member Parse : System.CommandLine.Argument * string -> System.CommandLine.Parsing.ParseResult
<Extension()>
Public Function Parse (argument As Argument, commandLine As String) As ParseResult

Parameters

argument
Argument

The argument to use to parse the command line input.

commandLine
String

A command line string to parse, which can include spaces and quotes equivalent to what can be entered into a terminal.

Returns

A parse result describing the outcome of the parse operation.

Remarks

The command line string input will be split into tokens as if it had been passed on the command line.

Applies to

Parse(Argument, String[])

Parses a command line string value using an argument.

public:
[System::Runtime::CompilerServices::Extension]
 static System::CommandLine::Parsing::ParseResult ^ Parse(System::CommandLine::Argument ^ argument, cli::array <System::String ^> ^ args);
public static System.CommandLine.Parsing.ParseResult Parse (this System.CommandLine.Argument argument, string[] args);
static member Parse : System.CommandLine.Argument * string[] -> System.CommandLine.Parsing.ParseResult
<Extension()>
Public Function Parse (argument As Argument, args As String()) As ParseResult

Parameters

argument
Argument

The argument to use to parse the command line input.

args
String[]

The string arguments to parse.

Returns

A parse result describing the outcome of the parse operation.

Applies to