Class Arguments
- Namespace
- AlphaFramework.Presentation
- Assembly
- AlphaFramework.Presentation.dll
Helpers for interpreting the command-line arguments for the current process.
public static class Arguments
- Inheritance
-
objectArguments
Methods
GetOption(string)
Gets the value associated with an option of a given name.
public static string? GetOption(string name)
Parameters
namestring
Returns
- string
The value associated with the option;
nullif the option wasn't set.
GetOption<T>(string)
Gets the value associated with an option of a given name.
public static T? GetOption<T>(string name)
Parameters
namestring
Returns
- T
The value associated with the option;
nullif the option wasn't set.
Type Parameters
T
HasOption(string)
Determines whether an option with the given name was specified.
public static bool HasOption(string name)
Parameters
namestring