C# Class CommandLine.CommandLineParser

Provides methods to parse command line arguments. Default implementation for CommandLine.ICommandLineParser.
Inheritance: ICommandLineParser
Datei anzeigen Open project: ErikEJ/SqlQueryStress Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
ParseArgumentList ( string args, object options ) : bool
ParseHelp ( string args, HelpOptionAttribute helpOption ) : bool

Method Details

ParseArguments() public method

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.
return bool

ParseArguments() public method

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 .
return bool