Skip to content

Commit

Permalink
add some explains for --default-toolchain none
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustin170506 committed Feb 16, 2023
1 parent cbadeef commit 00c930f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion rustup-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ FLAGS:
OPTIONS:
--default-host <default-host> Choose a default host triple
--default-toolchain <default-toolchain> Choose a default toolchain to install
--default-toolchain <default-toolchain>
Choose a default toolchain to install. Use 'none' to not install any toolchains at all
--profile <profile> [default: default] [possible values: minimal, default, complete]
-c, --component <components>... Component name to also install
-t, --target <targets>... Target name to also install
Expand Down
2 changes: 1 addition & 1 deletion src/cli/setup_mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pub fn main() -> Result<utils::ExitCode> {
Arg::with_name("default-toolchain")
.long("default-toolchain")
.takes_value(true)
.help("Choose a default toolchain to install"),
.help("Choose a default toolchain to install. Use 'none' to not install any toolchains at all"),
)
.arg(
Arg::with_name("profile")
Expand Down
4 changes: 3 additions & 1 deletion tests/cli-ui/rustup-init/rustup-init_help_flag_stdout.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ FLAGS:
OPTIONS:
--default-host <default-host> Choose a default host triple
--default-toolchain <default-toolchain> Choose a default toolchain to install
--default-toolchain <default-toolchain>
Choose a default toolchain to install. Use 'none' to not install any toolchains at all
--profile <profile> [default: default] [possible values: minimal, default, complete]
-c, --component <components>... Component name to also install
-t, --target <targets>... Target name to also install
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ FLAGS:
OPTIONS:
--default-host <default-host> Choose a default host triple
--default-toolchain <default-toolchain> Choose a default toolchain to install
--default-toolchain <default-toolchain>
Choose a default toolchain to install. Use 'none' to not install any toolchains at all
--profile <profile> [default: default] [possible values: minimal, default, complete]
-c, --component <components>... Component name to also install
-t, --target <targets>... Target name to also install
Expand Down

0 comments on commit 00c930f

Please sign in to comment.