feat(arg): add parser description
This commit is contained in:
parent
448c572026
commit
4c6112f0a7
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
# Duplicate Check
|
# Duplicate Check
|
||||||
# Version: 0.10.0
|
# Version: 0.11.0
|
||||||
|
|
||||||
# Copyright 2025 Jake Winters
|
# Copyright 2025 Jake Winters
|
||||||
# SPDX-License-Identifier: BSD-3-Clause
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
@ -12,6 +12,9 @@ import hashlib
|
|||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
|
|
||||||
|
parser = argparse.ArgumentParser(description='Scan directory for duplicate files and delete them.')
|
||||||
|
|
||||||
|
|
||||||
def hash_file(file_path):
|
def hash_file(file_path):
|
||||||
sha256_hash = hashlib.sha256()
|
sha256_hash = hashlib.sha256()
|
||||||
with open(file_path, 'rb') as f:
|
with open(file_path, 'rb') as f:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user