From ad78cf3fc29a81e607cd8ef2b5ef6ca6af468f88 Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Wed, 20 Nov 2024 14:18:27 -0800 Subject: [PATCH] Add aliases for remove/uninstall/unset commands 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. --- src/cli/rustup_mode.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cli/rustup_mode.rs b/src/cli/rustup_mode.rs index ecf5049bc2..b95bdaa081 100644 --- a/src/cli/rustup_mode.rs +++ b/src/cli/rustup_mode.rs @@ -315,7 +315,7 @@ enum ToolchainSubcmd { }, /// Uninstall the given toolchains - #[command(alias = "remove")] + #[command(aliases = ["remove", "rm", "delete", "del"])] Uninstall { #[command(flatten)] opts: UninstallOpts, @@ -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..)] @@ -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)]