共用方式為


CommandLineBuilderExtensions.UseParseErrorReporting 方法

定義

設定命令列,以在剖析命令列輸入時將錯誤資訊寫入標準錯誤。

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

參數

builder
CommandLineBuilder

命令行產生器。

errorExitCode
Nullable<Int32>

剖析器錯誤發生時要使用的結束代碼。

傳回

的相同實例 CommandLineBuilder

適用於