From dabcc24f98f2f6338c704747b3e25e5db658ebfa Mon Sep 17 00:00:00 2001 From: asonix Date: Wed, 4 Jan 2023 15:05:34 -0600 Subject: [PATCH] Parse environment variables - main app --- src/config.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index 4b1d3dc..85eca05 100644 --- a/src/config.rs +++ b/src/config.rs @@ -102,7 +102,11 @@ pub(crate) fn configure() -> color_eyre::Result<(Configuration, Operation)> { }; let built = config - .add_source(config::Environment::with_prefix("PICTRS").separator("__")) + .add_source( + config::Environment::with_prefix("PICTRS") + .separator("__") + .try_parsing(true), + ) .add_source(config::Config::try_from(&config_format)?) .build()?;