infra to synthesize program options with config options
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
59efabbbc2
commit
2fb43dd38d
4 changed files with 16 additions and 5 deletions
|
@ -405,7 +405,7 @@ const DEPRECATED_KEYS: &[&str; 9] = &[
|
|||
|
||||
impl Config {
|
||||
/// Initialize config
|
||||
pub fn new(path: Option<PathBuf>) -> Result<Self> {
|
||||
pub fn new(path: &Option<PathBuf>) -> Result<Self> {
|
||||
let raw_config = if let Some(config_file_env) = Env::var("CONDUIT_CONFIG") {
|
||||
Figment::new()
|
||||
.merge(Toml::file(config_file_env).nested())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue