C# Class NBench.Runner.CommandLine

Command line argument parser for NBench specifications Parses arguments from Environment.GetCommandLineArgs. For example (from the Akka.NodeTestRunner source): var outputDirectory = CommandLine.GetInt32("output-directory");
Afficher le fichier Open project: petabridge/NBench

Méthodes publiques

Méthode Description
GetBool ( string key ) : bool
GetFiles ( string args ) : List

Retrieve file names from the command line

GetInt32 ( string key ) : int
GetProperty ( string key ) : string
HasProperty ( string key ) : bool

Determines whether a property was written in the command line

Method Details

GetBool() public static méthode

public static GetBool ( string key ) : bool
key string
Résultat bool

GetFiles() public static méthode

Retrieve file names from the command line
public static GetFiles ( string args ) : List
args string
Résultat List

GetInt32() public static méthode

public static GetInt32 ( string key ) : int
key string
Résultat int

GetProperty() public static méthode

public static GetProperty ( string key ) : string
key string
Résultat string

HasProperty() public static méthode

Determines whether a property was written in the command line
public static HasProperty ( string key ) : bool
key string Name of the property
Résultat bool