Edit

Share via


Parser.Parse(IReadOnlyList<String>, String) Method

Definition

Parses a list of arguments.

public System.CommandLine.Parsing.ParseResult Parse(System.Collections.Generic.IReadOnlyList<string> arguments, string? rawInput = default);
member this.Parse : System.Collections.Generic.IReadOnlyList<string> * string -> System.CommandLine.Parsing.ParseResult
Public Function Parse (arguments As IReadOnlyList(Of String), Optional rawInput As String = Nothing) As ParseResult

Parameters

arguments
IReadOnlyList<String>

The string array typically passed to a program's Main method.

rawInput
String

The complete command line input prior to splitting and tokenization. This input is not typically available when the parser is called from Program.Main. It is primarily used when calculating completions via the dotnet-suggest tool.

Returns

A ParseResult providing details about the parse operation.

Applies to