First commit
This commit is contained in:
14
start.py
Normal file
14
start.py
Normal file
@@ -0,0 +1,14 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user