Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RF: since argument could be not just a list but a package id etc, renamed into items #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions NDATools/clientscripts/downloadcmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@

def parse_args():
parser = argparse.ArgumentParser(
description='This application allows you to enter a list of aws S3 paths and will download the files to your '
'drive in your home folder. Alternatively, you may enter a packageID, an NDA data structure file or'
' a text file with s3 links, and the client will download all files from the S3 links listed. '
description='This application allows you to download from NDA. '
'Depending on use of -dp, -t, or -ds flags, expected <items> would differ. '
'You could specify a list of aws S3 paths and will download the files to your '
'drive in your home folder. Alternatively, you may enter a packageID, an NDA data structure file or '
'a text file with s3 links, and the client will download all files from the S3 links listed. '
'Please note, the maximum transfer limit of data is 5TB at one time.',
usage='%(prog)s <S3_path_list>')
usage='%(prog)s <items>')

parser.add_argument('paths', metavar='<S3_path_list>', type=str, nargs='+', action='store',
parser.add_argument('items', metavar='<items>', type=str, nargs='+', action='store',
help='Will download all S3 files to your local drive')

parser.add_argument('-dp', '--package', action='store_true',
Expand Down Expand Up @@ -99,7 +101,7 @@ def main():
verbose = True

s3Download = Download(dir, config, verbose=verbose)
s3Download.get_links(links, args.paths, filters=None)
s3Download.get_links(links, args.items, filters=None)
if len(s3Download.path_list) == 0:
return
s3Download.get_tokens()
Expand Down