(cmd: str)
| 285 | |
| 286 | |
| 287 | def _print_generic_subcommand_help(cmd: str) -> None: |
| 288 | printers = { |
| 289 | "init": _print_init_help, |
| 290 | "serve": _print_serve_help, |
| 291 | "doctor": _print_doctor_help, |
| 292 | "setup": _print_setup_help, |
| 293 | "logs": _print_logs_help, |
| 294 | "support": _print_support_help, |
| 295 | "provider": _print_provider_help, |
| 296 | "route": _print_route_help, |
| 297 | "scene": _print_scene_help, |
| 298 | } |
| 299 | printer = printers.get(cmd, _print_help) |
| 300 | printer() |
| 301 | |
| 302 | |
| 303 | def _wants_help(args: list[str]) -> bool: |