2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-22 11:21:24 +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
.add_source(config::Environment::with_prefix("PICTRS").separator("__"))
.add_source(
config::Environment::with_prefix("PICTRS")
.separator("__")
.try_parsing(true),
)
.build()?;
let operation = Operation::Run;