Function parseConfigString

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

T parseConfigString(T) (
  string data,
  string path,
  StrictMode strict = StrictMode.Error
);

T parseConfigString(T) (
  string data,
  in CLIArgs cmdln,
  StrictMode strict = StrictMode.Error
);

Parameters

NameDescription
cmdln command-line arguments (containing the path to the config)
path When parsing a string, the path corresponding to it
strict Whether the parsing should reject unknown keys in the document, warn, or ignore them (default: StrictMode.Error)

Throws

Exception if parsing the config file failed.

Returns

Config instance