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")]
|
#[structopt(name = "list")]
|
||||||
List(ListOptions),
|
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
|
/// If a trash directory isn't specified, the best strategy is picked
|
||||||
/// for each file that's deleted (after shell glob expansion). The
|
/// for each file that's deleted (after shell glob expansion). The
|
||||||
/// algorithm for deciding a strategy is specified in the FreeDesktop
|
/// algorithm for deciding a strategy is specified in the FreeDesktop
|
||||||
/// Trash spec.
|
/// Trash spec.
|
||||||
#[structopt(name = "put")]
|
#[structopt(name = "put", alias = "rm")]
|
||||||
Put(PutOptions),
|
Put(PutOptions),
|
||||||
|
|
||||||
/// Restores files from the trash.
|
/// Restores files from the trash.
|
||||||
|
@ -45,9 +45,6 @@ fn main() {
|
||||||
Ok(_) => (),
|
Ok(_) => (),
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
eprintln!("Error: {}", err);
|
eprintln!("Error: {}", err);
|
||||||
// for cause in err.chain() {
|
|
||||||
// eprintln!("- {:?}", cause);
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue