Skip to content

Commit 3cd4a4a

Browse files
committed
feat: add --file-availability option for disk available file filtering + a warning message when this option isn't specified #163
1 parent 6fad3b8 commit 3cd4a4a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cernopendata_client/cli.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,9 @@ def download_files(
344344
\t $ cernopendata-client download-files --recid 5500 --filter-range 1-2,5-7\n
345345
\t $ cernopendata-client download-files --recid 5500 --filter-regexp py --filter-range 1-2
346346
"""
347-
record_json = _validate_and_load(server, recid, doi, title, retry_limit, retry_sleep)
347+
record_json = _validate_and_load(
348+
server, recid, doi, title, retry_limit, retry_sleep
349+
)
348350
file_locations_info = get_files_list(server, record_json, protocol, expand)
349351
if expand:
350352
if not file_availability and any(f[3] != "online" for f in file_locations_info):

0 commit comments

Comments
 (0)