xlsx-dir-map/xlsx_dir_map/__main__.py

19 lines
513 B
Python
Raw Normal View History

2022-01-24 01:50:27 +00:00
import argparse
2022-01-23 19:40:51 +00:00
2022-01-24 01:50:27 +00:00
parser = argparse.ArgumentParser(description='Process some intzzz')
parser.add_argument('--in', '-i', dest='file_in', required=True)
parser.add_argument('--out', '-o')
parser.add_argument('--range', '-r', dest='cell_range')
2022-01-24 03:21:06 +00:00
parser.add_argument('column_groups', nargs='+')
2022-01-23 19:40:51 +00:00
2022-01-24 01:50:27 +00:00
args = parser.parse_args()
2022-01-23 19:40:51 +00:00
2022-01-24 01:50:27 +00:00
from spreadsheet import get_names_list
2022-01-23 19:40:51 +00:00
2022-01-24 03:21:06 +00:00
names = get_names_list(args.file_in, args.cell_range, args.column_groups)
2022-01-24 01:50:27 +00:00
from directory import create_directories
create_directories(args.out, names)
2022-01-24 03:21:06 +00:00