Repository navigation
Show the map viewer’s local address and default port in --help - #4825
Abishek0070 wants to merge 2 commits into
Conversation
Show the viewer address and default port in CLI help
|
Tested AI-assisted (Devin); no game files. |
whattheflop
left a comment
There was a problem hiding this comment.
Integration check with the catalog draft #4763 at 66c88956. Both PRs edit the same CLI block, and Git merged them cleanly (tree f577cb3be1936c01b59ac2f8fbe820526624df30). On the merged tree --help shows 127.0.0.1, default port 8765, the port-0 behavior, and the new catalog option. Synthetic verification with uv CPython 3.12.13 and Node 24.16.0 passed 72 Python tests with 3 platform skips and all 60 Node tests. No manual conflict resolution needed at these heads. AI-assisted.
|
Tested 6ea2981 merged with main 3faac55 (clean merge) on Windows 11 (CPython 3.13.1) and Linux (WSL2, CPython 3.12.16): pass.
|
|
Verified on Linux: merges cleanly with current main 3faac55, and --help now prints the server description and the 8765 default correctly (%(default)s expands as intended — ran it). The full tests/test_viewer_serve.py suite passes on the merged tree, 39 tests (re-run), no regressions; nothing on main touched viewer/serve.py since your base. Note this PR comes from a fork main branch so it gets no CI runs at all — treat this as the extra evidence a human reviewer needs to weigh. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
|
Tested
|
Summary
python -I viewer/serve.py --helpnow shows where to open the map viewer with its default settings:http://127.0.0.1:8765/. The command description names the loopback address, and the--porthelp reads the default port fromargparseso it stays accurate if the default changes.Testing
python -I viewer/serve.py --helpand confirmed it shows127.0.0.1, the default port8765, and how to request a free port with--port 0.python -I tests/test_viewer_serve.py. All 39 tests passed.AI-assisted: yes
Checklist
docs/design.md, with how it was confirmed.