[][src]Trait abscissa_core::config::Override

pub trait Override<Cfg: Config>: Command {
    fn override_config(&self, config: Cfg) -> Result<Cfg, FrameworkError> { ... }
}

Use options from the given Command to override settings in the config.

Provided methods

fn override_config(&self, config: Cfg) -> Result<Cfg, FrameworkError>

Process the given command line options, overriding settings from a configuration file using explicit flags taken from command-line arguments.

This provides a canonical way to interpret global configuration settings when dealing with both a config file and options passed on the command line, and a unified way of accessing this information from components or in the application: from the global config.

Loading content...

Implementors

Loading content...