From 6affd177eba14231b735201b0fb5b27592f563dd Mon Sep 17 00:00:00 2001 From: Gabriel GRONDIN Date: Thu, 18 Nov 2021 22:21:32 +0100 Subject: [PATCH] Fix bad arg name check --- pzztool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pzztool.py b/pzztool.py index 2aade1a..210993f 100644 --- a/pzztool.py +++ b/pzztool.py @@ -305,7 +305,7 @@ if __name__ == '__main__': p_output.mkdir(exist_ok=True) for filename in listdir(p_input): - if (not args.ignore_filename) and ("_uncompressed" in filename): + if (not args.disable_ignore) and ("_uncompressed" in filename): if args.verbose: print(f"Compressing {filename}") recomp_filename = filename.replace( @@ -323,7 +323,7 @@ if __name__ == '__main__': p_output.mkdir(exist_ok=True) for filename in listdir(p_input): - if (not args.ignore_filename) and ("_compressed" in filename): + if (not args.disable_ignore) and ("_compressed" in filename): print(f"Decompressing {filename}") uncomp_filename = filename.replace( "_compressed", "_uncompressed")