Skip to content

Commit feec94b

Browse files
authored
Merge pull request #2968 from Emilgardis/force-non-host-install
add `force-non-host` flag to install subcommand
2 parents ffcf901 + 51d06a4 commit feec94b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/cli/rustup_mode.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,11 @@ pub(crate) fn cli() -> App<'static, 'static> {
292292
.help("Force an update, even if some components are missing")
293293
.long("force")
294294
.takes_value(false),
295+
).arg(
296+
Arg::with_name("force-non-host")
297+
.help("Install toolchains that require an emulator. See https://github.com/rust-lang/rustup/wiki/Non-host-toolchains")
298+
.long("force-non-host")
299+
.takes_value(false)
295300
),
296301
)
297302
.subcommand(
@@ -414,7 +419,12 @@ pub(crate) fn cli() -> App<'static, 'static> {
414419
.help("Allow rustup to downgrade the toolchain to satisfy your component choice")
415420
.long("allow-downgrade")
416421
.takes_value(false),
417-
),
422+
)
423+
.arg(
424+
Arg::with_name("force-non-host")
425+
.help("Install toolchains that require an emulator. See https://github.com/rust-lang/rustup/wiki/Non-host-toolchains")
426+
.long("force-non-host")
427+
.takes_value(false)),
418428
)
419429
.subcommand(
420430
SubCommand::with_name("uninstall")

0 commit comments

Comments
 (0)