Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump clap to 3.0 #3064

Merged
merged 6 commits into from Mar 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -3,6 +3,7 @@
/Cargo.lock
/.settings
/.idea/
/.vscode/
*~
/**/target
/home
Expand Down
87 changes: 45 additions & 42 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Expand Up @@ -29,7 +29,8 @@ no-self-update = []
anyhow.workspace = true
cfg-if = "1.0"
chrono = "0.4"
clap = {version = "2", features = ["wrap_help"]}
clap = {version = "3", features = ["wrap_help"]}
clap_complete = "3"
download = {path = "download", default-features = false}
effective-limits = "0.5.5"
enum-map = "2.4.2"
Expand Down
47 changes: 33 additions & 14 deletions rustup-init.sh
Expand Up @@ -29,25 +29,44 @@ rustup-init 1.25.2 (8c4dad73d 2023-02-01)
The installer for rustup

USAGE:
rustup-init [FLAGS] [OPTIONS]

FLAGS:
-v, --verbose Enable verbose output
-q, --quiet Disable progress output
-y Disable confirmation prompt.
--no-update-default-toolchain Don't update any existing default toolchain after install
--no-modify-path Don't configure the PATH environment variable
-h, --help Prints help information
-V, --version Prints version information
rustup-init [OPTIONS]

OPTIONS:
--default-host <default-host> Choose a default host triple
-v, --verbose
Enable verbose output

-q, --quiet
Disable progress output

-y
Disable confirmation prompt.

--default-host <default-host>
Choose a default host triple

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

--no-update-default-toolchain
Don't update any existing default toolchain after install

--no-modify-path
Don't configure the PATH environment variable

-h, --help
Print help information

-V, --version
Print version information
EOF
}

Expand Down