From a67a40c5711f2ec5bece96b85c5f6401ff3220f7 Mon Sep 17 00:00:00 2001 From: inference Date: Wed, 25 Jun 2025 21:51:29 +0000 Subject: [PATCH] feat(arg): add parser variable --- duplicate_check.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/duplicate_check.py b/duplicate_check.py index f9be6fb..5152b98 100644 --- a/duplicate_check.py +++ b/duplicate_check.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # Duplicate Check -# Version: 0.13.0 +# Version: 0.14.0 # Copyright 2025 Jake Winters # SPDX-License-Identifier: BSD-3-Clause @@ -15,6 +15,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.') parser.add_argument('directory', type=str, help='The directory to scan for duplicate files.') +args = parser.parse_args() def hash_file(file_path):