Skip to content

Commit 0589b08

Browse files
committed
change: changed the --ingore flag to --permanent flag -p
1 parent 455932e commit 0589b08

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/args.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub struct Args {
1313

1414
/// Don't put the file in trash, remove it permanently
1515
#[arg(short = 'i', long, global = false)]
16-
pub ignore: bool,
16+
pub permanent: bool,
1717

1818
/// Remove directories and their contents recursively
1919
#[arg(short = 'r', long, global = false)]

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ fn main() {
112112
let recursive = args.recursive;
113113
let force = args.force;
114114
let dir = args.dir;
115-
let ignore = args.ignore;
115+
let permanent = args.permanent;
116116

117117
if args.is_purge() {
118118
let names = args.get_purge_name();
@@ -260,7 +260,7 @@ All the contents from the trash more then {days} days will be deleted permanentl
260260
continue;
261261
}
262262

263-
match (ignore, dir, path.is_dir(), path.is_file(), recursive) {
263+
match (permanent, dir, path.is_dir(), path.is_file(), recursive) {
264264
(true, false, true, _, true) => {
265265
if let Err(e) = fs::remove_dir_all(&path) {
266266
eprintln!(

0 commit comments

Comments
 (0)