From d6a3c1785cec077ebf30480431199ea18bfc4a01 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Tue, 3 Nov 2020 22:01:40 -0600 Subject: [PATCH] Alias rm to put --- src/main.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index c644648..091929a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,13 +16,13 @@ enum Command { #[structopt(name = "list")] List(ListOptions), - /// Puts files into the trash. + /// Puts files into the trash. (also 'garbage rm') /// /// If a trash directory isn't specified, the best strategy is picked /// for each file that's deleted (after shell glob expansion). The /// algorithm for deciding a strategy is specified in the FreeDesktop /// Trash spec. - #[structopt(name = "put")] + #[structopt(name = "put", alias = "rm")] Put(PutOptions), /// Restores files from the trash. @@ -45,9 +45,6 @@ fn main() { Ok(_) => (), Err(err) => { eprintln!("Error: {}", err); - // for cause in err.chain() { - // eprintln!("- {:?}", cause); - // } } } }