体验:all-cli schema 缺参只报 accepts 1 arg
Open
Beginner friendly
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 1
- Forks
- 0
- Avg merge
- 7d 23h
- Merged PRs (30d)
- 24
Description
体验:all-cli schema 缺参只报 accepts 1 arg,不给 status|diagnostic 示例
不重复 #54(doctor vs diagnose)、#55(options / --no-progress)、#56(catalog 无匹配)、#57(README / catalog 发现入口)。
用户路径
- 根帮助把
schema放在 Primary commands。 - 第一次试:
all-cli schema(不知道要 status 还是 diagnostic)。 - cobra
ExactArgs(1)原先打出accepts 1 arg(s), received 0,不提合法名字,也不给all-cli schema status示例。 --help里才有 Example。缺参路径看不到。
建议改动
缺参时打印 want schema status|diagnostic (example: all-cli schema status)。
本地 clone 已按此改了一版(未 push / 未开 PR)。
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the schema Cobra command and its ExactArgs(1) validation. Check the existing help Example and the missing-argument path, then make that path mention status|diagnostic and show all-cli schema status; verify the command no longer exposes only the generic argument-count error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 76/100