Skip to content

Commit 51d06a4

Browse files
committed
add force-non-host flag to install subcommand
1 parent 3ced044 commit 51d06a4

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
@@ -296,6 +296,11 @@ pub(crate) fn cli() -> App<'static, 'static> {
296296
.help("Force an update, even if some components are missing")
297297
.long("force")
298298
.takes_value(false),
299+
).arg(
300+
Arg::with_name("force-non-host")
301+
.help("Install toolchains that require an emulator. See https://github.com/rust-lang/rustup/wiki/Non-host-toolchains")
302+
.long("force-non-host")
303+
.takes_value(false)
299304
),
300305
)
301306
.subcommand(
@@ -422,7 +427,12 @@ pub(crate) fn cli() -> App<'static, 'static> {
422427
.help("Allow rustup to downgrade the toolchain to satisfy your component choice")
423428
.long("allow-downgrade")
424429
.takes_value(false),
425-
),
430+
)
431+
.arg(
432+
Arg::with_name("force-non-host")
433+
.help("Install toolchains that require an emulator. See https://github.com/rust-lang/rustup/wiki/Non-host-toolchains")
434+
.long("force-non-host")
435+
.takes_value(false)),
426436
)
427437
.subcommand(
428438
SubCommand::with_name("uninstall")

0 commit comments

Comments
 (0)