Skip to content

Commit 5f64bd6

Browse files
committed
refactor: update CLI options for downloading CIMIS data
1 parent 3e3c55c commit 5f64bd6

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

dms_datastore/download_cimis.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -534,27 +534,24 @@ def download_cimis(hourly, existing_dir, download, partial):
534534

535535
@click.command()
536536
@click.option(
537-
"--hourly",
538-
is_flag=True,
537+
"--hourly/--daily",
539538
default=True,
540-
help="Download hourly data (default is True)",
539+
help="Download hourly data (default) or daily data",
541540
)
542541
@click.option("--existing-dir", default=None, help="Directory to merge new data into")
543542
@click.option(
544-
"--download",
545-
is_flag=True,
543+
"--download/--no-download",
546544
default=True,
547545
help="Download data (default is True)",
548546
)
549547
@click.option(
550-
"--partial",
551-
is_flag=True,
548+
"--partial/--full",
552549
default=False,
553-
help="Set partial download to True if provided (default is False)",
550+
help="Partial download (default is full download)",
554551
)
555552
def download_cimis_cli(hourly, existing_dir, download, partial):
556553
"""
557-
DCLI for downloading CIMIS data
554+
CLI for downloading CIMIS data
558555
"""
559556

560557
download_cimis(hourly, existing_dir, download, partial)

0 commit comments

Comments
 (0)