From 86d6740302f33e19b7ca40d0e9223a498e774f90 Mon Sep 17 00:00:00 2001 From: inference Date: Wed, 25 Jun 2025 21:46:03 +0000 Subject: [PATCH] feat(arg): add dry-run argument Add a dry-run argument so the user can have the script detect duplicates without deleting them. This is useful for informing the user of which files would be deleted, should they run the script, normally. --- duplicate_check.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/duplicate_check.py b/duplicate_check.py index ab314d1..280e5eb 100644 --- a/duplicate_check.py +++ b/duplicate_check.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # Duplicate Check -# Version: 0.11.0 +# Version: 0.12.0 # Copyright 2025 Jake Winters # SPDX-License-Identifier: BSD-3-Clause @@ -13,6 +13,7 @@ import argparse parser = argparse.ArgumentParser(description='Scan directory for duplicate files and delete them.') +parser.add_argument('--dry-run', '-d', action='store_true', help='Detect duplicates without deletion.') def hash_file(file_path):