parseConfig

Process the content of the YAML document described by node into an instance of the struct T.

See the module description for a complete overview of this function.

Parameters

T

Type of the config struct to fill

cmdln CLIArgs

Command line arguments

node Node

The root node matching T

strict StrictMode

Action to take when encountering unknown keys in the document

Return Value

Type: T

An instance of T filled with the content of node

Throws

If the content of node cannot satisfy the requirements set by T, or if node contain extra fields and strict is true.

Meta