OptionExtensions.Parse 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
Parse(Option, String) |
옵션을 사용하여 명령줄 문자열 값을 구문 분석합니다. |
Parse(Option, String[]) |
옵션을 사용하여 명령줄 문자열 값을 구문 분석합니다. |
Parse(Option, String)
옵션을 사용하여 명령줄 문자열 값을 구문 분석합니다.
public:
[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Parsing::ParseResult ^ Parse(System::CommandLine::Option ^ option, System::String ^ commandLine);
public static System.CommandLine.Parsing.ParseResult Parse (this System.CommandLine.Option option, string commandLine);
static member Parse : System.CommandLine.Option * string -> System.CommandLine.Parsing.ParseResult
<Extension()>
Public Function Parse (option As Option, commandLine As String) As ParseResult
매개 변수
- option
- Option
명령줄 입력을 구문 분석하는 데 사용할 옵션입니다.
- commandLine
- String
구문 분석할 명령줄 문자열로, 터미널에 입력할 수 있는 것과 동일한 공백과 따옴표를 포함할 수 있습니다.
반환
구문 분석 작업의 결과를 설명하는 구문 분석 결과입니다.
설명
명령줄 문자열 입력은 명령줄에 전달된 것처럼 토큰으로 분할됩니다.
적용 대상
Parse(Option, String[])
옵션을 사용하여 명령줄 문자열 값을 구문 분석합니다.
public:
[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Parsing::ParseResult ^ Parse(System::CommandLine::Option ^ option, cli::array <System::String ^> ^ args);
public static System.CommandLine.Parsing.ParseResult Parse (this System.CommandLine.Option option, string[] args);
static member Parse : System.CommandLine.Option * string[] -> System.CommandLine.Parsing.ParseResult
<Extension()>
Public Function Parse (option As Option, args As String()) As ParseResult
매개 변수
- option
- Option
명령줄 입력을 구문 분석하는 데 사용할 옵션입니다.
- args
- String[]
구문 분석할 문자열 옵션입니다.
반환
구문 분석 작업의 결과를 설명하는 구문 분석 결과입니다.
적용 대상
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET