Method Load
- Namespace
- Ploch.CommandLine.Spectre
- Assembly
- Ploch.CommandLine.Spectre.dll
Load(EnvironmentVariableTarget)
Reads the environment settings: the debugger state, the pause-before-exit preference, and the development-time runtime variables — those whose name starts with DevRuntimeVariablePrefix.
public EnvironmentSettings Load(EnvironmentVariableTarget target = EnvironmentVariableTarget.Process)
Parameters
targetEnvironmentVariableTargetThe environment variable scope to read from. Defaults to the current process.
Returns
- EnvironmentSettings
The environment settings read from the host environment.
Remarks
Only the DEV_RUNTIME-prefixed variables are captured. The full environment block is not
retained: it routinely carries secrets, and the caller can read it directly if it needs to.