Skip to content

Commit 3b505ef

Browse files
committed
remove type from flag options for pallets/click#2894
1 parent 8b011cc commit 3b505ef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

homonim/cli.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@
3131
import rasterio as rio
3232
import yaml
3333
from click.core import ParameterSource
34-
from rasterio.warp import SUPPORTED_RESAMPLING
3534
from rasterio.errors import NotGeoreferencedWarning
35+
from rasterio.warp import SUPPORTED_RESAMPLING
3636

3737
from homonim import utils, version, RasterFuse, RasterCompare, ParamStats, ProcCrs, Model
3838
from homonim.errors import ImageFormatError
39-
from homonim.raster_array import RasterArray
4039
from homonim.kernel_model import KernelModel
40+
from homonim.raster_array import RasterArray
4141

4242
logger = logging.getLogger(__name__)
4343

@@ -262,7 +262,7 @@ def _param_file_cb(ctx: click.Context, param: click.Argument, value):
262262
help=f'Reference band index(es) to match with source band(s) (1 based).'
263263
)
264264
force_match_option = click.option(
265-
'-f', '--force-match', is_flag=True, type=click.BOOL, default=False, show_default=True,
265+
'-f', '--force-match', is_flag=True,default=False, show_default=True,
266266
help=f'Bypass auto wavelength matching, and any band-matching errors. Use with caution.'
267267
)
268268
""" cloup context settings to print help in 'linear' layout with heading/option emphasis. """
@@ -325,7 +325,7 @@ def cli(verbose: int, quiet: int):
325325
show_default='source image directory.', help='Directory in which to place corrected image(s).'
326326
),
327327
click.option(
328-
'-o', '--overwrite', is_flag=True, type=click.BOOL, default=False, show_default=True,
328+
'-o', '--overwrite', is_flag=True, default=False, show_default=True,
329329
help='Overwrite existing output file(s).'
330330
),
331331
# TODO: does this work in front of an argument? or should it be handles like oty rpc's --gcp-refine?

0 commit comments

Comments
 (0)