다음을 통해 공유


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>

파서 오류가 발생할 때 사용할 종료 코드입니다.

반환

의 동일한 instanceCommandLineBuilder.

적용 대상