Udostępnij za pośrednictwem


CommandLineBuilderExtensions.UseParseErrorReporting Metoda

Definicja

Konfiguruje wiersz polecenia, aby zapisywać informacje o błędach w standardowym błędzie, gdy występują błędy podczas analizowania danych wejściowych wiersza polecenia.

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

Konstruktor wiersza polecenia.

errorExitCode
Nullable<Int32>

Kod zakończenia do użycia, gdy wystąpią błędy analizatora.

Zwraca

To samo wystąpienie klasy CommandLineBuilder.

Dotyczy