Print the usage for `prompuff <command> --help`
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从src/Prompuff.Cli/CliApp.cs开始:阅读CommandLine.Parse、它的Flags集合和未知选项的处理,然后阅读RunAsync开头的帮助检查。在tests/Prompuff.Cli.Tests/CliTests.cs中,靠近Usage_mistakes_explain_themselves的位置添加测试;运行dotnet test tests/Prompuff.Cli.Tests。完成标准:命令级别的--help和-h会打印用法并以退出码0结束,--仍会保护后面的单词,未知选项仍以退出码1结束。
由索引模型根据 Issue 内容生成。
描述
prompuff help, prompuff --help and prompuff -h print the usage, but only as the first word. prompuff render --help fails with "Prompuff doesn't know the option --help." and exit code 1, and that's the first thing many people try.
What to do
- When
--helpor-hcomes after a command, print the same usage text to stdout and exit 0, without opening the library. - Words after
--stay words, soprompuff get -- --helpstill looks for a prompt called--help. - Add
--helpto the Options list in the usage text.
Where to look
src/Prompuff.Cli/CliApp.cs:CommandLine.Parse(theFlagsset at line 15, the unknown-option error at line 76), and the help check at the top ofRunAsync(line 134).tests/Prompuff.Cli.Tests/CliTests.cs:Usage_mistakes_explain_themselves(line 188).
Done when
-
prompuff render --helpandprompuff search angular -hprint the usage and exit 0. -
prompuff get -- --helpstill looks up a prompt instead of printing the usage. -
prompuff list --frobstill fails with exit code 1. -
CliContractTestspasses unchanged. Nothing intests/*/Fixturesis edited.
Testing it
dotnet test tests/Prompuff.Cli.Tests
PROMPUFF_DATA_DIR=/tmp/prompuff-dev dotnet run --project src/Prompuff.Cli -- render --help
- 主要语言
- C#
- 星标
- 0
- 派生
- 1
- 平均合并
- 1 小时 51 分钟
- 30 天内合并 PR
- 13
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
hazeliscoding/prompuff 的其他 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 78/100
hazeliscoding/prompuff#34 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
hazeliscoding/prompuff#22 ·
维护者通常 1 天内回复
-
good first issue
难度 2/5 1-3 小时 新手友好度 90/100
hazeliscoding/prompuff#14 ·
维护者通常 1 天内回复
-
good first issue
难度 1/5 1-3 小时 新手友好度 92/100
hazeliscoding/prompuff#13 ·
维护者通常 1 天内回复
-
Translations未关闭enhancement later
难度 5/5 一周以上 新手友好度 25/100
hazeliscoding/prompuff#62 ·
维护者通常 1 天内回复
查看 hazeliscoding/prompuff 的全部 Issue
相似的 Issue
-
area: client bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
bug mcp misleading small
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
Bug Platform: Android
难度 2/5 1-3 小时 新手友好度 78/100
getsentry/sentry-dotnet#5764 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
microsoft/SimpleL7Proxy#287 ·
维护者通常 1 天内回复