Skip to content

Commit 00c930f

Browse files
committed
add some explains for --default-toolchain none
1 parent cbadeef commit 00c930f

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

rustup-init.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ FLAGS:
4242
4343
OPTIONS:
4444
--default-host <default-host> Choose a default host triple
45-
--default-toolchain <default-toolchain> Choose a default toolchain to install
45+
--default-toolchain <default-toolchain>
46+
Choose a default toolchain to install. Use 'none' to not install any toolchains at all
47+
4648
--profile <profile> [default: default] [possible values: minimal, default, complete]
4749
-c, --component <components>... Component name to also install
4850
-t, --target <targets>... Target name to also install

src/cli/setup_mode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub fn main() -> Result<utils::ExitCode> {
5555
Arg::with_name("default-toolchain")
5656
.long("default-toolchain")
5757
.takes_value(true)
58-
.help("Choose a default toolchain to install"),
58+
.help("Choose a default toolchain to install. Use 'none' to not install any toolchains at all"),
5959
)
6060
.arg(
6161
Arg::with_name("profile")

tests/cli-ui/rustup-init/rustup-init_help_flag_stdout.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ FLAGS:
1919
2020
OPTIONS:
2121
--default-host <default-host> Choose a default host triple
22-
--default-toolchain <default-toolchain> Choose a default toolchain to install
22+
--default-toolchain <default-toolchain>
23+
Choose a default toolchain to install. Use 'none' to not install any toolchains at all
24+
2325
--profile <profile> [default: default] [possible values: minimal, default, complete]
2426
-c, --component <components>... Component name to also install
2527
-t, --target <targets>... Target name to also install

tests/cli-ui/rustup-init/rustup-init_sh_help_flag_stdout.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ FLAGS:
1919
2020
OPTIONS:
2121
--default-host <default-host> Choose a default host triple
22-
--default-toolchain <default-toolchain> Choose a default toolchain to install
22+
--default-toolchain <default-toolchain>
23+
Choose a default toolchain to install. Use 'none' to not install any toolchains at all
24+
2325
--profile <profile> [default: default] [possible values: minimal, default, complete]
2426
-c, --component <components>... Component name to also install
2527
-t, --target <targets>... Target name to also install

0 commit comments

Comments
 (0)