언어

Command.Parse 메서드

정의

오버로드

속성 Description
Parse(IReadOnlyList<String>, ParserConfiguration)

명령을 사용하여 배열 문자열을 구문 분석합니다.

Parse(String, ParserConfiguration)

명령을 사용하여 명령줄 문자열 값을 구문 분석합니다.

Parse(IReadOnlyList<String>, ParserConfiguration)

Source:
Command.cs
Source:
Command.cs

명령을 사용하여 배열 문자열을 구문 분석합니다.

public System.CommandLine.ParseResult Parse(System.Collections.Generic.IReadOnlyList<string> args, System.CommandLine.ParserConfiguration? configuration = default);
member this.Parse : System.Collections.Generic.IReadOnlyList<string> * System.CommandLine.ParserConfiguration -> System.CommandLine.ParseResult
Public Function Parse (args As IReadOnlyList(Of String), Optional configuration As ParserConfiguration = Nothing) As ParseResult

매개 변수

args
IReadOnlyList<String>

구문 분석할 문자열 인수입니다.

configuration
ParserConfiguration

파서의 문법 및 동작을 기반으로 하는 구성입니다.

반품

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

적용 대상

Parse(String, ParserConfiguration)

Source:
Command.cs
Source:
Command.cs

명령을 사용하여 명령줄 문자열 값을 구문 분석합니다.

public System.CommandLine.ParseResult Parse(string commandLine, System.CommandLine.ParserConfiguration? configuration = default);
member this.Parse : string * System.CommandLine.ParserConfiguration -> System.CommandLine.ParseResult
Public Function Parse (commandLine As String, Optional configuration As ParserConfiguration = Nothing) As ParseResult

매개 변수

commandLine
String

구문 분석할 명령줄 문자열로, 터미널에 입력할 수 있는 것과 동일한 공백과 따옴표를 포함할 수 있습니다.

configuration
ParserConfiguration

파서의 문법 및 동작을 기반으로 하는 구성입니다.

반품

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

설명

명령줄 문자열 입력은 명령줄에 전달된 것처럼 토큰으로 분할됩니다.

적용 대상