Share via


OptionExtensions.Parse 메서드

정의

오버로드

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[]

구문 분석할 문자열 옵션입니다.

반환

구문 분석 작업의 결과를 설명하는 구문 분석 결과입니다.

적용 대상