C# Класс CommandLine.CommandLineParser

Provides methods to parse command line arguments. Default implementation for CommandLine.ICommandLineParser.
Наследование: ICommandLineParser
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ParseArguments ( string args, object options ) : bool

Parses a System.String array of command line arguments, setting values read in options parameter instance.

ParseArguments ( string args, object options, TextWriter helpWriter ) : bool

Parses a System.String array of command line arguments, setting values read in options parameter instance. This overloads allows you to specify a System.IO.TextWriter derived instance for write text messages.

Приватные методы

Метод Описание
ParseArgumentList ( string args, object options ) : bool
ParseHelp ( string args, HelpOptionAttribute helpOption ) : bool

Описание методов

ParseArguments() публичный Метод

Parses a System.String array of command line arguments, setting values read in options parameter instance.
Thrown if is null. Thrown if is null.
public ParseArguments ( string args, object options ) : bool
args string A array of command line arguments.
options object An instance to receive values. /// Parsing rules are defined using derived types.
Результат bool

ParseArguments() публичный Метод

Parses a System.String array of command line arguments, setting values read in options parameter instance. This overloads allows you to specify a System.IO.TextWriter derived instance for write text messages.
Thrown if is null. Thrown if is null. Thrown if is null.
public ParseArguments ( string args, object options, TextWriter helpWriter ) : bool
args string A array of command line arguments.
options object An instance to receive values. /// Parsing rules are defined using derived types.
helpWriter System.IO.TextWriter Any instance derived from , /// usually .
Результат bool