Skip to content
This repository was archived by the owner on Mar 17, 2024. It is now read-only.

Commit d1197c3

Browse files
authored
Merge pull request rust-lang#3444 from djc/clap-4
Upgrade to clap 4
2 parents 8ee9875 + 1fa23bf commit d1197c3

File tree

1 file changed

+28
-39
lines changed

1 file changed

+28
-39
lines changed

rustup-init.sh

+28-39
Original file line numberDiff line numberDiff line change
@@ -26,47 +26,36 @@ RUSTUP_UPDATE_ROOT="${RUSTUP_UPDATE_ROOT:-https://static.rust-lang.org/rustup}"
2626
usage() {
2727
cat <<EOF
2828
rustup-init 1.26.0 (577bf51ae 2023-04-05)
29-
The installer for rustup
30-
31-
USAGE:
32-
rustup-init [OPTIONS]
33-
34-
OPTIONS:
35-
-v, --verbose
36-
Enable verbose output
37-
38-
-q, --quiet
39-
Disable progress output
40-
41-
-y
42-
Disable confirmation prompt.
43-
44-
--default-host <default-host>
45-
Choose a default host triple
46-
47-
--default-toolchain <default-toolchain>
48-
Choose a default toolchain to install. Use 'none' to not install any toolchains at all
4929
50-
--profile <profile>
51-
[default: default] [possible values: minimal, default, complete]
52-
53-
-c, --component <components>...
54-
Component name to also install
55-
56-
-t, --target <targets>...
57-
Target name to also install
58-
59-
--no-update-default-toolchain
60-
Don't update any existing default toolchain after install
61-
62-
--no-modify-path
63-
Don't configure the PATH environment variable
64-
65-
-h, --help
66-
Print help information
30+
The installer for rustup
6731
68-
-V, --version
69-
Print version information
32+
Usage: rustup-init[EXE] [OPTIONS]
33+
34+
Options:
35+
-v, --verbose
36+
Enable verbose output
37+
-q, --quiet
38+
Disable progress output
39+
-y
40+
Disable confirmation prompt.
41+
--default-host <default-host>
42+
Choose a default host triple
43+
--default-toolchain <default-toolchain>
44+
Choose a default toolchain to install. Use 'none' to not install any toolchains at all
45+
--profile <profile>
46+
[default: default] [possible values: minimal, default, complete]
47+
-c, --component <components>...
48+
Component name to also install
49+
-t, --target <targets>...
50+
Target name to also install
51+
--no-update-default-toolchain
52+
Don't update any existing default toolchain after install
53+
--no-modify-path
54+
Don't configure the PATH environment variable
55+
-h, --help
56+
Print help
57+
-V, --version
58+
Print version
7059
EOF
7160
}
7261

0 commit comments

Comments
 (0)