INNER CODE UNIT · Python

_build_health_parser

georgekhananaev/google-reviews-scraper-pro · modules/cli.py:295

def _build_health_parser(sub: argparse._SubParsersAction) -> None:
    """Build the 'health' subcommand — synthetic scraper probe."""
    sp = sub.add_parser("health", help="Run synthetic scraper health probe")
    _add_common_args(sp)
    sp.add_argument(
        "--url", type=str, default=None,
        help="place URL to probe (overrides health.synthetic_url config)",
    )


def _build_logs_parser(sub: argparse._SubParsersAction) -> None:
    """Build the 'logs' subcommand."""
    sp = sub.add_parser("logs", help="View structured JSON log files")
    _add_common_args(sp)
    sp.add_argument(
        "--lines", "-n", type=int, default=50,
        help="number of lines to show (default: 50)",
    )

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…