From a489411c6c231ec6c77d1b92d4086572e10628d9 Mon Sep 17 00:00:00 2001 From: asonix Date: Wed, 4 Jan 2023 14:42:04 -0600 Subject: [PATCH] Parse environment variables --- src/config.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index 99b20a4..4b1d3dc 100644 --- a/src/config.rs +++ b/src/config.rs @@ -66,7 +66,11 @@ pub(crate) fn configure_without_clap, T: serde::Serialize, Q: AsR }; let built = config - .add_source(config::Environment::with_prefix("PICTRS").separator("__")) + .add_source( + config::Environment::with_prefix("PICTRS") + .separator("__") + .try_parsing(true), + ) .build()?; let operation = Operation::Run;