Skip to content

Commit

Permalink
Add aliases for remove/uninstall/unset commands
Browse files Browse the repository at this point in the history
After one too many times of running `rustup toolchain rm` or `rustup
toolchain delete` and being surprised that it doesn't work, add some
aliases so that it does.
  • Loading branch information
joshtriplett authored and rami3l committed Nov 22, 2024
1 parent 55f767b commit ad78cf3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cli/rustup_mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ enum ToolchainSubcmd {
},

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

/// Remove a target from a Rust toolchain
#[command(alias = "uninstall")]
#[command(aliases = ["uninstall", "rm", "delete", "del"])]
Remove {
/// List of targets to uninstall
#[arg(required = true, num_args = 1..)]
Expand Down Expand Up @@ -485,7 +485,7 @@ enum OverrideSubcmd {
},

/// Remove the override toolchain for a directory
#[command(alias = "remove", after_help = OVERRIDE_UNSET_HELP)]
#[command(aliases = ["remove", "rm", "delete", "del"], after_help = OVERRIDE_UNSET_HELP)]
Unset {
/// Path to the directory
#[arg(long)]
Expand Down

0 comments on commit ad78cf3

Please sign in to comment.