Class CommandLineHelper
- Namespace
- NLightning.Daemon.Contracts.Helpers
- Assembly
- NLightning.Daemon.Contracts.dll
Helper class for displaying command line usage information
public static class CommandLineHelper
- Inheritance
-
CommandLineHelper
- Inherited Members
Fields
DashC
public const string DashC = "-c"
Field Value
DashDashCookie
public const string DashDashCookie = "--cookie"
Field Value
DashDashCookieEquals
public const string DashDashCookieEquals = "--cookie="
Field Value
DashDashHelp
public const string DashDashHelp = "--help"
Field Value
DashDashNetwork
public const string DashDashNetwork = "--network"
Field Value
DashDashNetworkEquals
public const string DashDashNetworkEquals = "--network="
Field Value
DashH
public const string DashH = "-h"
Field Value
DashN
public const string DashN = "-n"
Field Value
Methods
GetCommand(string[])
public static string? GetCommand(string[] args)
Parameters
argsstring[]
Returns
GetCommandArguments(string, string[])
public static string[] GetCommandArguments(string command, string[] args)
Parameters
Returns
- string[]
GetCookiePath(string[])
public static string GetCookiePath(string[] args)
Parameters
argsstring[]
Returns
IsHelpRequested(string[])
Parse command line arguments to check for help request
public static bool IsHelpRequested(string[] args)
Parameters
argsstring[]