scripts/update_all.py
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
import argparse
from scrapenhl2.scrape import autoupdate
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument("-s", "--season", type=int, default=None)
arguments = parser.parse_args()
if arguments.season is not None and 2017 < arguments.season < 2005:
print("Invalid season")
autoupdate.autoupdate(season=arguments.season)