Skip to content

Commit 56bdd58

Browse files
committed
Upgrade to clap 4
1 parent 3be1ab1 commit 56bdd58

File tree

55 files changed

+503
-701
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+503
-701
lines changed

Cargo.lock

+17-93
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ test = ["dep:once_cell", "dep:walkdir"]
4949
anyhow.workspace = true
5050
cfg-if = "1.0"
5151
chrono = { version = "0.4", default-features = false, features = ["std"] }
52-
clap = { version = "3", features = ["deprecated", "wrap_help"] }
53-
clap_complete = "3"
52+
clap = { version = "4", features = ["wrap_help"] }
53+
clap_complete = "4"
5454
derivative.workspace = true
5555
download = { path = "download", default-features = false }
5656
effective-limits = "0.5.5"

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 [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)