Class CommandLine
Command line argument parser for individual node tests during a MultiNodeSpec.
Parses arguments from GetCommandLineArgs() using the same conventions as canonical Akka.
For example (from the Akka.NodeTestRunner source):
var nodeIndex = CommandLine.GetInt32("multinode.index");
var assemblyName = CommandLine.GetProperty("multinode.test-assembly");
var typeName = CommandLine.GetProperty("multinode.test-class");
var testName = CommandLine.GetProperty("multinode.test-method");
Assembly: Akka.Remote.TestKit.dll
Syntax
public static class CommandLine
Properties
|
Improve this Doc
View Source
ShowHelp
Declaration
public static bool ShowHelp { get; }
Property Value
|
Improve this Doc
View Source
ShowVersion
Declaration
public static bool ShowVersion { get; }
Property Value
Methods
|
Improve this Doc
View Source
GetInt32(String)
Declaration
public static int GetInt32(string key)
Parameters
Type |
Name |
Description |
String |
key |
|
Returns
|
Improve this Doc
View Source
GetInt32OrDefault(String, Int32)
Declaration
public static int GetInt32OrDefault(string key, int defaultInt)
Parameters
Returns
|
Improve this Doc
View Source
GetProperty(String)
Declaration
public static string GetProperty(string key)
Parameters
Type |
Name |
Description |
String |
key |
|
Returns
|
Improve this Doc
View Source
GetPropertyOrDefault(String, String)
Declaration
public static string GetPropertyOrDefault(string key, string defaultStr)
Parameters
Returns
|
Improve this Doc
View Source
Initialize(String[])
Declaration
public static void Initialize(string[] args)
Parameters
Type |
Name |
Description |
String[] |
args |
|