Sdílet prostřednictvím


CommandLineBuilderExtensions.UseParseErrorReporting Metoda

Definice

Nakonfiguruje příkazový řádek pro zápis informací o chybě do standardní chyby, pokud dojde k chybám při analýze vstupu příkazového řádku.

public static System.CommandLine.Builder.CommandLineBuilder UseParseErrorReporting (this System.CommandLine.Builder.CommandLineBuilder builder, int? errorExitCode = default);
static member UseParseErrorReporting : System.CommandLine.Builder.CommandLineBuilder * Nullable<int> -> System.CommandLine.Builder.CommandLineBuilder
<Extension()>
Public Function UseParseErrorReporting (builder As CommandLineBuilder, Optional errorExitCode As Nullable(Of Integer) = Nothing) As CommandLineBuilder

Parametry

builder
CommandLineBuilder

Tvůrce příkazového řádku.

errorExitCode
Nullable<Int32>

Ukončovací kód, který se má použít, když dojde k chybám analyzátoru.

Návraty

Stejná instance .CommandLineBuilder

Platí pro