mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-11-09 22:14:59 +00:00
Parse environment variables
This commit is contained in:
parent
9960c16488
commit
a489411c6c
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue