Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/cli/rustup_mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,14 @@ fn plus_toolchain_value_parser(s: &str) -> clap::error::Result<ResolvableToolcha
#[command(name = "rustup", bin_name = "rustup[EXE]")]
enum RustupSubcmd {
/// Install or update the given toolchains, or by default the active toolchain
#[command(hide = true, after_help = install_help())]
#[command(hide = true, after_help = install_help(), aliases = ["add"])]
Install {
#[command(flatten)]
opts: UpdateOpts,
},

/// Uninstall the given toolchains
#[command(hide = true)]
#[command(hide = true, aliases = ["remove", "rm", "delete", "del"])]
Uninstall {
#[command(flatten)]
opts: UninstallOpts,
Expand Down Expand Up @@ -332,7 +332,7 @@ enum ToolchainSubcmd {
},

/// Install or update the given toolchains, or by default the active toolchain
#[command(aliases = ["update", "add"], after_help = toolchain_install_help())]
#[command(aliases = ["update", "up", "add"], after_help = toolchain_install_help())]
Install {
#[command(flatten)]
opts: UpdateOpts,
Expand Down Expand Up @@ -541,6 +541,7 @@ enum OverrideSubcmd {
)]
enum SelfSubcmd {
/// Download and install updates to rustup
#[command(alias = "up")]
Update,

/// Uninstall rustup
Expand Down