Skip to content

Commit

Permalink
Change -pre option to --no-preview, to preview image by default
Browse files Browse the repository at this point in the history
  • Loading branch information
plant99 committed Jul 26, 2020
1 parent df507be commit 02e44f8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions felicette/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
help="Enhance image with panchromatic band",
)
@click.option(
"-pre",
"--preview-image",
"--no-preview",
default=False,
is_flag=True,
help="Preview pre-processed low resolution RGB satellite image.",
Expand All @@ -42,7 +41,7 @@
is_flag=True,
help="Show Color Infrared image to highlight vegetation",
)
def main(coordinates, location_name, pan_enhancement, preview_image, vegetation):
def main(coordinates, location_name, pan_enhancement, no_preview, vegetation):
"""Satellite imagery for dummies."""
if not coordinates and not location_name:
exit_cli(print, "Please specify either --coordinates or --location-name")
Expand All @@ -56,7 +55,7 @@ def main(coordinates, location_name, pan_enhancement, preview_image, vegetation)
check_sat_path(landsat_item._data["id"])

# if preview option is set, download and preview image
if preview_image:
if not no_preview:
preview_landsat_image(landsat_item)

# set bands to process
Expand Down

0 comments on commit 02e44f8

Please sign in to comment.