Skip to content

Commit ad78cf3

Browse files
joshtriplettrami3l
authored andcommitted
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.
1 parent 55f767b commit ad78cf3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cli/rustup_mode.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ enum ToolchainSubcmd {
315315
},
316316

317317
/// Uninstall the given toolchains
318-
#[command(alias = "remove")]
318+
#[command(aliases = ["remove", "rm", "delete", "del"])]
319319
Uninstall {
320320
#[command(flatten)]
321321
opts: UninstallOpts,
@@ -410,7 +410,7 @@ enum TargetSubcmd {
410410
},
411411

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

487487
/// Remove the override toolchain for a directory
488-
#[command(alias = "remove", after_help = OVERRIDE_UNSET_HELP)]
488+
#[command(aliases = ["remove", "rm", "delete", "del"], after_help = OVERRIDE_UNSET_HELP)]
489489
Unset {
490490
/// Path to the directory
491491
#[arg(long)]

0 commit comments

Comments
 (0)