14 lines
640 B
Python
14 lines
640 B
Python
from argparse import ArgumentParser
|
|
from sorter import ImageSorter
|
|
|
|
if __name__ == '__main__':
|
|
parser = ArgumentParser(prog="image-sorter", description="A tool for renaming images to the date from the exif data")
|
|
parser.add_argument("-i", "--input_dir", required=True, type=str)
|
|
parser.add_argument("-o", "--output_dir", required=True, type=str)
|
|
parser.add_argument("-c", "--config_mapping_file", required=True, type=str)
|
|
parser.add_argument("-s", "--suffix", type=str)
|
|
parser.add_argument("-v", "--verbose", action="store_true")
|
|
|
|
args = parser.parse_args()
|
|
sorter = ImageSorter(args)
|
|
sorter.sort_files() |