다음을 통해 공유


CommandLineBuilderExtensions.EnablePosixBundling 메서드

정의

파서가 POSIX 스타일 번들 옵션을 인식하고 확장할 수 있도록 합니다.

public static System.CommandLine.Builder.CommandLineBuilder EnablePosixBundling (this System.CommandLine.Builder.CommandLineBuilder builder, bool value = true);
static member EnablePosixBundling : System.CommandLine.Builder.CommandLineBuilder * bool -> System.CommandLine.Builder.CommandLineBuilder
<Extension()>
Public Function EnablePosixBundling (builder As CommandLineBuilder, Optional value As Boolean = true) As CommandLineBuilder

매개 변수

builder
CommandLineBuilder

명령줄 작성기입니다.

value
Boolean

true설정하면 POSIX 번들이 구문 분석됩니다. ; 그렇지 않으면 입니다 false.

반환

의 동일한 instance.CommandLineBuilder

설명

POSIX 규칙은 단일 - 접두사 뒤에 단일 문자 옵션을 함께 지정할 수 있도록 하는 것이 좋습니다. 가 로 true설정된 경우 EnablePosixBundling(CommandLineBuilder, Boolean) 다음 명령줄은 동일합니다.

> myapp -a -b -c
> myapp -abc

옵션 번들 다음에 인수가 제공되면 번들의 마지막 옵션에 적용됩니다. 가 로 true설정된 경우 EnablePosixBundling(CommandLineBuilder, Boolean) 다음 명령줄은 모두 동일합니다.

> myapp -a -b -c arg
> myapp -abc arg
> myapp -abcarg

적용 대상