core/cli: clearer /stream /tools /verbose help text

Use metavar [on|off] and document default/effect so /help stream is
readable without guessing ENABLED.
This commit is contained in:
2026-07-15 13:17:51 +08:00
parent ffab066cab
commit 00c3350225
2 changed files with 28 additions and 6 deletions
+9
View File
@@ -114,6 +114,15 @@ async def test_help_history_no_fake_options(state: ReplState, capsys: pytest.Cap
assert "--help" not in out
async def test_help_stream_clearer(state: ReplState, capsys: pytest.CaptureFixture[str]) -> None:
assert await handle_slash(state, "/help stream") is True
out = capsys.readouterr().out
assert "Usage: /stream [on|off]" in out
assert "ENABLED" not in out
assert "tokens arrive" in out
assert "default" in out
async def test_history_rejects_help_flag(state: ReplState, capsys: pytest.CaptureFixture[str]) -> None:
assert await handle_slash(state, "/history --help") is True
captured = capsys.readouterr()