summaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.rs b/src/config.rs
index 78795a3..d28e111 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -9,8 +9,8 @@ pub struct Config {
9impl Config { 9impl Config {
10 pub fn load() -> Result<Config, config::ConfigError> { 10 pub fn load() -> Result<Config, config::ConfigError> {
11 let builder = config::Config::builder() 11 let builder = config::Config::builder()
12 .add_source(config::File::with_name("~/.config/webol-cli.toml")) 12 .add_source(config::File::with_name("~/.config/webol-cli").required(false))
13 .add_source(config::File::with_name("webol-cli.toml")) 13 .add_source(config::File::with_name("webol-cli").required(false))
14 .add_source(config::Environment::with_prefix("WEBOL_CLI_").separator("_")) 14 .add_source(config::Environment::with_prefix("WEBOL_CLI_").separator("_"))
15 .build()?; 15 .build()?;
16 16