Skip to content

Commit

Permalink
Warning: --verify and --remove-padding are incompatible with each oth…
Browse files Browse the repository at this point in the history
…er's. For compatibility reasons --quick-verify will be automatically used instead to match the command line argument behavior prior to NSZ v4.6.0.
  • Loading branch information
nicoboss committed Dec 3, 2023
1 parent 87884d1 commit 3a11ff0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nsz/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ def main():
if args.verify and not args.quick_verify and not args.keep_delta:
Print.info("Warning: --verify requires --keep-delta when used during compression or it will detect removed NDV0 fragments as errors. For compatibility reasons --quick-verify will be automatically used instead to match the command line argument behavior prior to NSZ v4.3.0.")
args.quick_verify = True
if args.verify and not args.quick_verify and not args.keep_delta:
Print.info("Warning: --verify and --remove-padding are incompatible with each others. For compatibility reasons --quick-verify will be automatically used instead to match the command line argument behavior prior to NSZ v4.6.0.")
args.quick_verify = True
sourceFileToDelete = []
for f_str in args.file:
for filePath in expandFiles(Path(f_str)):
Expand Down

0 comments on commit 3a11ff0

Please sign in to comment.