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
|
Edit this page
View Source
ShowHelp
Declaration
public static bool ShowHelp { get; }
Property Value
|
Edit this page
View Source
ShowVersion
Declaration
public static bool ShowVersion { get; }
Property Value
Methods
|
Edit this page
View Source
GetInt32(string)
Declaration
public static int GetInt32(string key)
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
|
Edit this page
View Source
GetInt32OrDefault(string, int)
Declaration
public static int GetInt32OrDefault(string key, int defaultInt)
Parameters
Type |
Name |
Description |
string |
key |
|
int |
defaultInt |
|
Returns
|
Edit this page
View Source
GetProperty(string)
Declaration
public static string GetProperty(string key)
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
|
Edit this page
View Source
GetPropertyOrDefault(string, string)
Declaration
public static string GetPropertyOrDefault(string key, string defaultStr)
Parameters
Returns
|
Edit this page
View Source
Initialize(string[])
Declaration
public static void Initialize(string[] args)
Parameters
Type |
Name |
Description |
string[] |
args |
|