From 7ccc385438aa20d6827389407530de8888e528cf Mon Sep 17 00:00:00 2001 From: LuckyTurtleDev Date: Fri, 22 Sep 2023 20:36:43 +0200 Subject: [PATCH] remove `include-non-png` flag --- src/main.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index f38e3c1b..9802ad1b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -70,12 +70,6 @@ fn main() { .long("recursive") .action(ArgAction::SetTrue), ) - .arg( - Arg::new("include-non-png") - .help("compress also files with non png extensions if --recursive flag is used") - .long("include-non-png") - .action(ArgAction::SetTrue), - ) .arg( Arg::new("output_dir") .help("Write output file(s) to ") @@ -402,7 +396,7 @@ fn collect_files( } else { //skip non png files if recusive flag is used. //(still allow the user to convert a non png file if recusive flag is not used); - if !top_level && recursive && !include_non_png && { + if !top_level && recursive && { let extension = input.extension().map(|f| f.to_ascii_lowercase()); extension != Some(OsString::from("png")) && extension != Some(OsString::from("apng"))