CommandLineBuilderExtensions.EnablePosixBundling 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
파서가 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
적용 대상
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET