diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-01-12 11:02:57 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-01-12 11:02:57 +0100 |
| commit | 462bcac629752d4f5d8bf87adcba9dab96044ed5 (patch) | |
| tree | 4f89e8553f84f1fdbd0f988b6a9195fb40565d1e /compiler/rustc_session/src | |
| parent | 2b1365b34f0d5ee43944c4266a625923a7b312dd (diff) | |
| download | rust-462bcac629752d4f5d8bf87adcba9dab96044ed5.tar.gz rust-462bcac629752d4f5d8bf87adcba9dab96044ed5.zip | |
Rename `--env` option flag to `--env-set`
Diffstat (limited to 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/config.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_session/src/config.rs b/compiler/rustc_session/src/config.rs index 61796d7a6ca..ba04a3222ba 100644 --- a/compiler/rustc_session/src/config.rs +++ b/compiler/rustc_session/src/config.rs @@ -1823,7 +1823,7 @@ pub fn rustc_optgroups() -> Vec<RustcOptGroup> { "Remap source names in all output (compiler messages and output files)", "FROM=TO", ), - opt::multi("", "env", "Inject an environment variable", "VAR=VALUE"), + opt::multi("", "env-set", "Inject an environment variable", "VAR=VALUE"), ]); opts } @@ -2599,11 +2599,11 @@ fn parse_logical_env( ) -> FxIndexMap<String, String> { let mut vars = FxIndexMap::default(); - for arg in matches.opt_strs("env") { + for arg in matches.opt_strs("env-set") { if let Some((name, val)) = arg.split_once('=') { vars.insert(name.to_string(), val.to_string()); } else { - early_dcx.early_fatal(format!("`--env`: specify value for variable `{arg}`")); + early_dcx.early_fatal(format!("`--env-set`: specify value for variable `{arg}`")); } } |
