Repository navigation
v0.13.1 — relay 契约与 CLI 对齐:--to 别名 + 位置参数
[0.13.1] - 2026-11-09
Fixed — relay contract taught a flag the CLI did not accept (B17)
RELAY_CONTRACT (the text delivered to every relayed session) and the module
docstring said tower relay --to <target> -m "...", while the CLI only parsed a
positional target. A peer following the contract got unrecognized arguments: --to and never answered, so --await-receipt waits could hang for nothing.
- The CLI now accepts both:
tower relay <target> -m "…"(canonical) and
tower relay --to <target> -m "…"(alias). A missing target is a clear exit-2. - The contract and docstring now teach the positional form (with
--tonamed as
an accepted alias), so either style a peer copies works. - Regression test covers both forms and the contract wording.