parseConfigFile

Parses the config file or string and returns a Config instance.

T
parseConfigFile
(
T
)

Parameters

cmdln CLIArgs

command-line arguments (containing the path to the config)

strict StrictMode

Whether the parsing should reject unknown keys in the document, warn, or ignore them (default: StrictMode.Error)

Return Value

Type: T

Config instance

Throws

Exception if parsing the config file failed.

Meta