Skip to content

Commit e3a8f06

Browse files
committed
cli: early exit for resume and disable checksums flag combo
1 parent b98542e commit e3a8f06

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

  • packages/divbase-cli/src/divbase_cli/cli_commands

packages/divbase-cli/src/divbase_cli/cli_commands/file_cli.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,16 @@ def download_all_files(
278278
Before the download proceeds you'll be prompted if you want to continue.
279279
DivBase Query results files will not be included in the download.
280280
281-
TODO - can you combine resume and disable checksums? I think no?
282-
283281
You can resume ('--resume' / '-r') a 'download-all' command, just make sure you're downloading into the same directory.
284282
"""
283+
if resume and disable_verify_checksums:
284+
print(
285+
"The --resume and --disable-verify-checksums options cannot be used together, "
286+
"as checksums are used to determine which files don't need to be downloaded. \n"
287+
"Exiting... "
288+
)
289+
return
290+
285291
project_config = resolve_project(project_name=project)
286292
logged_in_url = ensure_logged_in(desired_url=project_config.divbase_url)
287293
download_dir_path = resolve_download_dir(download_dir=download_dir)

0 commit comments

Comments
 (0)