[][src]Function super_analyzer_core::initialize_config

pub fn initialize_config(cli: &ArgMatches<'static>) -> Result<Config, Error>

Initialize the config with the config files and command line options.

On UNIX, if local file, config.toml, does not exist, but the global one does /etc/super-analyzer/config.toml, the latter is used. Otherwise, the local file is used. Finally, if non of the files could be loaded, the default configuration is used. This default configuration contains the minimal setup for running the analysis.

It will then add the configuration selected with the command line interface options.