fix: scope gh subcommand help output
This commit is contained in:
@@ -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 命令
|
||||
|
||||
Reference in New Issue
Block a user