Expose viewer host option

This commit is contained in:
oyasumi
2026-08-19 15:25:57 -04:00
committed by alex s
parent 9cd81e5c76
commit 8d3693df8c
3 changed files with 36 additions and 1 deletions
+5 -1
View File
@@ -45,7 +45,11 @@ def run_view(argv: list[str]) -> None:
default=0,
help="Port to serve on (default: an available ephemeral port).",
)
parser.add_argument("--host", default="127.0.0.1", help=argparse.SUPPRESS)
parser.add_argument(
"--host",
default="127.0.0.1",
help="Host to bind to (default: 127.0.0.1; use 0.0.0.0 for all IPv4 interfaces).",
)
parser.add_argument(
"--no-open",
action="store_true",