Class NBenchCommands
Command line argument parser for NBench specifications
Parses arguments from System.Environment.GetCommandLineArgs.
For example (from the Akka.NodeTestRunner source):
var outputDirectory = CommandLine.GetInt32("output-directory");
Inheritance
System.Object
NBenchCommands
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: NBench.dll
Syntax
public static class NBenchCommands
Fields
ConcurrentKey
Declaration
public const string ConcurrentKey = "--concurrent"
Field Value
Type |
Description |
System.String |
|
ConfigurationKey
Declaration
public const string ConfigurationKey = "--configuration"
Field Value
Type |
Description |
System.String |
|
DiagnosticsKey
Declaration
public const string DiagnosticsKey = "--diagnostic"
Field Value
Type |
Description |
System.String |
|
ExcludeKey
Declaration
public const string ExcludeKey = "--exclude"
Field Value
Type |
Description |
System.String |
|
IncludeKey
Declaration
public const string IncludeKey = "--include"
Field Value
Type |
Description |
System.String |
|
OutputKey
Declaration
public const string OutputKey = "--output"
Field Value
Type |
Description |
System.String |
|
TeamCityKey
Declaration
public const string TeamCityKey = "--teamcity"
Field Value
Type |
Description |
System.String |
|
TracingKey
Declaration
public const string TracingKey = "--trace"
Field Value
Type |
Description |
System.String |
|
Version
Declaration
public static readonly string Version
Field Value
Type |
Description |
System.String |
|
Methods
Declaration
public static string FormatCapturedArguments(bool includeOutput = true)
Parameters
Type |
Name |
Description |
System.Boolean |
includeOutput |
|
Returns
Type |
Description |
System.String |
|
GetBool(String)
Declaration
public static bool GetBool(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
Type |
Description |
System.Boolean |
|
GetInt32(String)
Declaration
public static int GetInt32(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
Type |
Description |
System.Int32 |
|
GetProperty(String)
Declaration
public static List<string> GetProperty(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
Type |
Description |
System.Collections.Generic.List<System.String> |
|
GetSingle(String)
Declaration
public static string GetSingle(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
Type |
Description |
System.String |
|
HasProperty(String)
Determines whether a property was written in the command line
Declaration
public static bool HasProperty(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
Name of the property
|
Returns
Type |
Description |
System.Boolean |
|
ParseValues(String[])
Declaration
public static Dictionary<string, List<string>> ParseValues(string[] args)
Parameters
Type |
Name |
Description |
System.String[] |
args |
|
Returns
Type |
Description |
System.Collections.Generic.Dictionary<System.String, System.Collections.Generic.List<System.String>> |
|
ShowHelp()
Declaration
public static void ShowHelp()