Skip to main content

load

Function load 

Source
pub fn load(
    args: &[String],
    env: &[(String, String)],
) -> Result<(Loaded, Ask), ConfigError>
Expand description

Load, layer and validate a v2 document from args (excluding the program name) and env. Returns (Loaded, Ask); Ask tells the caller what the invocation wants (--help, --config-schema, --validate-config, …). Errors are ConfigError::Usage (exit 2), before any side effect.