Table of Contents

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
object
Arguments

Methods

GetOption(string)

Gets the value associated with an option of a given name.

public static string? GetOption(string name)

Parameters

name string

Returns

string

The value associated with the option; null if 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

name string

Returns

T

The value associated with the option; null if 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

name string

Returns

bool