2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-11-14 00:13:59 +00:00

Parse environment variables

This commit is contained in:
asonix 2023-01-04 14:42:04 -06:00
parent 9960c16488
commit a489411c6c

View file

@ -66,7 +66,11 @@ pub(crate) fn configure_without_clap<P: AsRef<Path>, T: serde::Serialize, Q: AsR
}; };
let built = config let built = config
.add_source(config::Environment::with_prefix("PICTRS").separator("__")) .add_source(
config::Environment::with_prefix("PICTRS")
.separator("__")
.try_parsing(true),
)
.build()?; .build()?;
let operation = Operation::Run; let operation = Operation::Run;