feat(arg): add parser variable
This commit is contained in:
parent
326577e5ca
commit
a67a40c571
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user