C# Class CommandLine.CommandLineParser

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

Méthodes publiques

Méthode 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

Méthode Description
ParseArgumentList ( string args, object options ) : bool
ParseHelp ( string args, HelpOptionAttribute helpOption ) : bool

Method Details

ParseArguments() public méthode

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.
Résultat bool

ParseArguments() public méthode

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 .
Résultat bool