C# 클래스 org.GraphDefined.Vanaheimr.Illias.CommandLineParser

A command line parser.
파일 보기 프로젝트 열기: Vanaheimr/Illias 1 사용 예제들

공개 메소드들

메소드 설명
AddLongOption ( String LongOption ) : CommandLineParserOption

Create a new fluent interface to create command line parser options.

AddOption ( Char ShortOption, Action Delegate, String Verification = null ) : CommandLineParser

Add the given action for the given character, e.g. "o" for a "-o" command line option.

AddOption ( Char ShortOption, String LongOption, Action Delegate, String Verification = null ) : CommandLineParser

Add the given action for the given character and string, e.g. "o" and "output" for a "-o" and "--output" command line option.

AddOption ( String LongOption, Action Delegate, String Verification = null ) : CommandLineParser

Add the given action for the given string, e.g. "output" for a "--output" command line option.

AddOption ( ) : CommandLineParserOption

Create a new fluent interface to create command line parser options.

AddShortOption ( Char ShortOption ) : CommandLineParserOption

Create a new fluent interface to create command line parser options.

CommandLineParser ( ) : System

Create a new command line parser.

Parse ( String Arguments ) : CommandLineParser

Parse the given array of arguments.

메소드 상세

AddLongOption() 공개 메소드

Create a new fluent interface to create command line parser options.
public AddLongOption ( String LongOption ) : CommandLineParserOption
LongOption String Add a long option.
리턴 CommandLineParserOption

AddOption() 공개 메소드

Add the given action for the given character, e.g. "o" for a "-o" command line option.
public AddOption ( Char ShortOption, Action Delegate, String Verification = null ) : CommandLineParser
ShortOption Char A short option.
Delegate Action What to do with the value of the character option.
Verification String An optional regular expression for verification.
리턴 CommandLineParser

AddOption() 공개 메소드

Add the given action for the given character and string, e.g. "o" and "output" for a "-o" and "--output" command line option.
public AddOption ( Char ShortOption, String LongOption, Action Delegate, String Verification = null ) : CommandLineParser
ShortOption Char A short option.
LongOption String A long option.
Delegate Action What to do with the value of the short and/or long option.
Verification String An optional regular expression for verification.
리턴 CommandLineParser

AddOption() 공개 메소드

Add the given action for the given string, e.g. "output" for a "--output" command line option.
public AddOption ( String LongOption, Action Delegate, String Verification = null ) : CommandLineParser
LongOption String A long option.
Delegate Action What to do with the value of the string option.
Verification String An optional regular expression for verification.
리턴 CommandLineParser

AddOption() 공개 메소드

Create a new fluent interface to create command line parser options.
public AddOption ( ) : CommandLineParserOption
리턴 CommandLineParserOption

AddShortOption() 공개 메소드

Create a new fluent interface to create command line parser options.
public AddShortOption ( Char ShortOption ) : CommandLineParserOption
ShortOption Char Add a short option.
리턴 CommandLineParserOption

CommandLineParser() 공개 메소드

Create a new command line parser.
public CommandLineParser ( ) : System
리턴 System

Parse() 공개 메소드

Parse the given array of arguments.
public Parse ( String Arguments ) : CommandLineParser
Arguments String An array of arguments.
리턴 CommandLineParser