Uredi

Deli z drugimi prek


ParseResultExtensions.Invoke(ParseResult, IConsole) Method

Definition

Invokes the appropriate command handler for a parsed command line input.

public static int Invoke (this System.CommandLine.Parsing.ParseResult parseResult, System.CommandLine.IConsole? console = default);
static member Invoke : System.CommandLine.Parsing.ParseResult * System.CommandLine.IConsole -> int
<Extension()>
Public Function Invoke (parseResult As ParseResult, Optional console As IConsole = Nothing) As Integer

Parameters

parseResult
ParseResult

A parse result on which the invocation is based.

console
IConsole

A console to which output can be written. By default, Console is used.

Returns

A value that can be used as a process exit code.

Applies to