Added ability to specify multiple map lists

This commit is contained in:
Mike C 2016-01-12 16:20:46 -05:00
parent e78aa8db23
commit c69f8515b2

View file

@ -14,13 +14,14 @@ if __name__ == '__main__':
current_timestamp = datetime.datetime.now().strftime('%Y%m%d-%H%M') current_timestamp = datetime.datetime.now().strftime('%Y%m%d-%H%M')
parser = argparse.ArgumentParser() parser = argparse.ArgumentParser()
parser.add_argument('--map-list', action='store') parser.add_argument('--map-list', action='append')
#TODO: Add argument to pass path to osmosis #TODO: Add argument to pass path to osmosis
#TODO: Add argument to pass path to output dir #TODO: Add argument to pass path to output dir
args = parser.parse_args() args = parser.parse_args()
map_list = [] map_list = []
with open(args.map_list, 'r') as maps: for alist in args.map_list:
with open(alist, 'r') as maps:
for line in maps: for line in maps:
map_list.append(line.strip()) map_list.append(line.strip())