Skip to content

Commit 65088d6

Browse files
authored
Merge pull request #2738 from hi-rustin/rustin-patch-fix-arg0
Add DUP_TOOLS as supported arg0
2 parents a738acd + 3b95226 commit 65088d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/rustup-init.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ use rustup::cli::setup_mode;
2828
use rustup::currentprocess::{process, with, OSProcess};
2929
use rustup::env_var::RUST_RECURSION_COUNT_MAX;
3030
use rustup::utils::utils;
31-
use rustup::TOOLS;
31+
use rustup::{TOOLS, DUP_TOOLS};
3232

3333
fn main() {
3434
let process = OSProcess::default();
@@ -94,7 +94,7 @@ fn run_rustup_inner() -> Result<utils::ExitCode> {
9494
}
9595
}
9696
Some(n) => {
97-
if TOOLS.iter().find(|&&name| name == n).is_some() {
97+
if TOOLS.iter().chain(DUP_TOOLS.iter()).find(|&&name| name == n).is_some() {
9898
proxy_mode::main()
9999
} else {
100100
Err(ErrorKind::UnknownProxyName(n.to_string()).into())

0 commit comments

Comments
 (0)