diff --git a/src/scrapingbee_cli/cli_utils.py b/src/scrapingbee_cli/cli_utils.py index 1e0b4cb..2ac1dbf 100644 --- a/src/scrapingbee_cli/cli_utils.py +++ b/src/scrapingbee_cli/cli_utils.py @@ -1258,7 +1258,7 @@ def _validate_geolocation( click.echo("radius must be >= 0", err=True) raise SystemExit(1) if (latitude is None) != (longitude is None): - raise SystemExit("latitude and longitude must be provided together") + raise SystemExit("latitude and longitude must be provided together") if radius is not None and latitude is None: raise SystemExit("radius requires latitude and longitude") diff --git a/src/scrapingbee_cli/commands/gemini.py b/src/scrapingbee_cli/commands/gemini.py index dbbed31..21a5bc8 100644 --- a/src/scrapingbee_cli/commands/gemini.py +++ b/src/scrapingbee_cli/commands/gemini.py @@ -15,7 +15,6 @@ validate_batch_run, ) from ..cli_utils import ( - BOOL_STR, _batch_options, check_api_response, parse_bool, @@ -31,7 +30,7 @@ @click.argument("prompt", nargs=-1, required=False) @click.option( "--add-html", - type=BOOL_STR, + type=str, default=None, help="Include full HTML of the page in results (true/false).", ) diff --git a/tests/unit/test_cli.py b/tests/unit/test_cli.py index be87f76..2359c49 100644 --- a/tests/unit/test_cli.py +++ b/tests/unit/test_cli.py @@ -8,9 +8,9 @@ WAIT_BROWSER_HELP, _extract_field_values, _filter_fields, + _validate_geolocation, _validate_json_option, _validate_page, - _validate_geolocation, _validate_price_range, _validate_range, )