fix: scope gh subcommand help output

This commit is contained in:
Codex
2026-06-16 01:34:38 +00:00
parent 7eadf39529
commit 028679cfcb
3 changed files with 106 additions and 2 deletions
+12
View File
@@ -35,6 +35,18 @@ bun scripts/cli.ts gh auth status [--repo owner/name]
探测 token 来源(`GH_TOKEN`/`GITHUB_TOKEN`/`gh auth token`)、GitHub REST egress、repo 可见性、issue 可读性。不打印 token。
## 聚焦帮助
具体子命令用法优先直接查 scoped help,不要先打开顶层长 help 再人工搜索:
```bash
bun scripts/cli.ts gh issue close --help
bun scripts/cli.ts gh issue comment --help
bun scripts/cli.ts gh pr merge --help
```
`gh <subcommand> --help``gh <subcommand> -h``gh <subcommand> help` 只输出匹配命令或命令组的 bounded JSON,包括相关 usage、短 notes 和完整 help 入口;`gh --help` / `gh help` 才输出完整顶层命令索引。
---
## Issue 命令