correct argparser
This commit is contained in:
parent
17b580638f
commit
6be5c5aeb8
1 changed files with 2 additions and 2 deletions
|
@ -97,7 +97,7 @@ def argparser() -> argparse.ArgumentParser:
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-s', '--start',
|
'-s', '--start',
|
||||||
description="Dandiset ID (int) to start scraping (default 1)",
|
help="Dandiset ID (int) to start scraping (default 1)",
|
||||||
default=1,
|
default=1,
|
||||||
type=int
|
type=int
|
||||||
)
|
)
|
||||||
|
@ -105,7 +105,7 @@ def argparser() -> argparse.ArgumentParser:
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
args = argparser().parse_args()
|
args = argparser().parse_args()
|
||||||
|
|
||||||
for i in trange(args.start, MAX_DANDISET):
|
for i in trange(args.start, MAX_DANDISET):
|
||||||
try:
|
try:
|
||||||
res = download_dandiset(i)
|
res = download_dandiset(i)
|
||||||
|
|
Loading…
Reference in a new issue