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");
Show file Open project: petabridge/NBench

Public Methods

Method 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 method

public static GetBool ( string key ) : bool
key string
return bool

GetFiles() public static method

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

GetInt32() public static method

public static GetInt32 ( string key ) : int
key string
return int

GetProperty() public static method

public static GetProperty ( string key ) : string
key string
return string

HasProperty() public static method

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