Table of Contents

Method Initialize

Namespace
Ploch.CommandLine.Spectre
Assembly
Ploch.CommandLine.Spectre.dll

Initialize(IEnvironmentSettingsLoader)

Replaces the loader used to populate Current. Call before Current is first read.

public static void Initialize(IEnvironmentSettingsLoader settingsLoader)

Parameters

settingsLoader IEnvironmentSettingsLoader

The loader to use when reading environment settings.

Exceptions

ArgumentNullException

Thrown when settingsLoader is null.

InvalidOperationException

Thrown when Current has already been materialised, because the supplied loader would otherwise silently never be used.