feat(arg): add parser variable

This commit is contained in:
inference 2025-06-25 21:51:29 +00:00
parent 326577e5ca
commit a67a40c571
Signed by: inference
SSH Key Fingerprint: SHA256:/O3c09/4f1lh4zrhFs2qvQEDda6dZbTwG9xEcj8OfWo

View File

@ -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):