blob: e537b8144c4b09c41dbb4101f66d7068a6f2ebff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/env python3
import argparse
from clnindexdl import download_all_from_index
from pathlib import Path
parser = argparse.ArgumentParser()
parser.add_argument('index', type=argparse.FileType('r'))
parser.add_argument('--threads', '-t', type=int, default=6)
parser.add_argument('--output_dir', '-o', type=str, default='.')
args = parser.parse_args()
if __name__ == "__main__":
download_all_from_index( args.index, Path( args.output_dir ), args.threads )
|