Method Initialize
- Namespace
- Ploch.CommandLine.Spectre
- Assembly
- Ploch.CommandLine.Spectre.dll
Initialize(IEnvironmentSettingsLoader)
public static void Initialize(IEnvironmentSettingsLoader settingsLoader)
Parameters
settingsLoaderIEnvironmentSettingsLoaderThe loader to use when reading environment settings.
Exceptions
- ArgumentNullException
Thrown when
settingsLoaderis null.- InvalidOperationException
Thrown when Current has already been materialised, because the supplied loader would otherwise silently never be used.