diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-03-28 17:42:05 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-03-28 17:42:05 +0100 |
commit | d9daf4c1d0abf0d93702e56028e8f746b0f475bc (patch) | |
tree | d0314f9eaf59059d7acc28d1dd3aa4e91540ad2c /src/ee/tools/seeed_download_opl.py | |
parent | fa85d46af0b91477cf354947df628af0dc0d2800 (diff) | |
download | ee-python-d9daf4c1d0abf0d93702e56028e8f746b0f475bc.tar.gz ee-python-d9daf4c1d0abf0d93702e56028e8f746b0f475bc.tar.bz2 ee-python-d9daf4c1d0abf0d93702e56028e8f746b0f475bc.tar.xz ee-python-d9daf4c1d0abf0d93702e56028e8f746b0f475bc.zip |
seeed-download-opl
o Change to download one OPL at the time. Enables Ninja to run the
downloads concurrently.
init/ninja:
o Learning about seeed-download-opl.
Diffstat (limited to 'src/ee/tools/seeed_download_opl.py')
-rw-r--r-- | src/ee/tools/seeed_download_opl.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/ee/tools/seeed_download_opl.py b/src/ee/tools/seeed_download_opl.py index e53361f..3f8b07b 100644 --- a/src/ee/tools/seeed_download_opl.py +++ b/src/ee/tools/seeed_download_opl.py @@ -5,12 +5,16 @@ from ee.supplier import seeed parser = argparse.ArgumentParser() -parser.add_argument("--out-dir", +parser.add_argument("--out", required=True, - metavar="DIR FOR PART DBS") + metavar="PART DB") + +parser.add_argument("--opl", + required=True, + metavar="OPL") args = parser.parse_args() cache_dir = ".ee/cache/seeed" -seeed.download_opls(Path(args.out_dir), Path(cache_dir)) +seeed.download_opl(Path(args.out), Path(cache_dir), args.opl) |