Alias rm to put
This commit is contained in:
parent
0cfafb0c67
commit
d6a3c1785c
1 changed files with 2 additions and 5 deletions
|
@ -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);
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue