xlsx-dir-map/xlsx_dir_map/__main__.py

21 lines
553 B
Python

import argparse
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')
parser.add_argument('column_groups', nargs='+')
args = parser.parse_args()
from spreadsheet import get_names_list
names = get_names_list(args.file_in, args.cell_range, args.column_groups)
print(names)
from directory import create_directories
create_directories(args.out, names)
#print(args.column_groups)