Alias rm to put

This commit is contained in:
Michael Zhang 2020-11-03 22:01:40 -06:00
parent 0cfafb0c67
commit d6a3c1785c
Signed by: michael
GPG key ID: BDA47A31A3C8EE6B

View file

@ -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);
// }
}
}
}