Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/scrapingbee_cli/cli_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
3 changes: 1 addition & 2 deletions src/scrapingbee_cli/commands/gemini.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
validate_batch_run,
)
from ..cli_utils import (
BOOL_STR,
_batch_options,
check_api_response,
parse_bool,
Expand All @@ -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).",
)
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down
Loading