1
Fork 0

Rename --env option flag to --env-set

This commit is contained in:
Guillaume Gomez 2024-01-12 11:02:57 +01:00
parent 2b1365b34f
commit 462bcac629
9 changed files with 17 additions and 17 deletions

View file

@ -18,7 +18,7 @@ fn lookup_env<'cx>(cx: &'cx ExtCtxt<'_>, var: Symbol) -> Option<Symbol> {
if let Some(value) = cx.sess.opts.logical_env.get(var) {
return Some(Symbol::intern(value));
}
// If the environment variable was not defined with the `--env` option, we try to retrieve it
// If the environment variable was not defined with the `--env-set` option, we try to retrieve it
// from rustc's environment.
env::var(var).ok().as_deref().map(Symbol::intern)
}