Print the usage for `prompuff <command> --help`
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 88/100
Hướng nghiên cứu
Bắt đầu ở src/Prompuff.Cli/CliApp.cs: đọc CommandLine.Parse, tập hợp Flags của nó và cách xử lý tùy chọn không xác định, sau đó đọc phần kiểm tra trợ giúp ở đầu RunAsync. Bổ sung kiểm thử trong tests/Prompuff.Cli.Tests/CliTests.cs, gần Usage_mistakes_explain_themselves; chạy dotnet test tests/Prompuff.Cli.Tests. Hoàn tất khi --help và -h ở cấp lệnh in hướng dẫn sử dụng và thoát với mã 0, -- tiếp tục bảo vệ từ tiếp theo, và các tùy chọn không xác định tiếp tục thoát với mã 1.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- C#
- Star
- 0
- Fork
- 1
- Merge trung bình
- 1 giờ 21 phút
- Pull request đã merge (30 ngày)
- 22
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của hazeliscoding/prompuff
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
hazeliscoding/prompuff#34 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
hazeliscoding/prompuff#22 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
hazeliscoding/prompuff#14 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 92/100
hazeliscoding/prompuff#13 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
TranslationsĐang mởenhancement later
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
hazeliscoding/prompuff#62 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của hazeliscoding/prompuff
Issue tương tự
-
clawsweeper:fix-shape-clear clawsweeper:needs-maintainer-review clawsweeper:no-new-fix-pr clawsweeper:not-repro-on-main impact:ux-release-blocker issue-rating: 🦪 silver shellfish P0
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
openclaw/openclaw-windows-node#1843 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
-
kind:ux size:S type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
elsa-workflows/elsa-foundation#3256 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: Revit selector reads process ids 2000-2099 as years (flaky AgentClientTests.AYearOrAProcessIdSelectsTheHost)Có thể đã có người làm @Wurschdhaud đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
pyrevitlabs/pyRevit#3817 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug effort:S P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
nightscout/nocturne#2449 ·
Maintainer thường phản hồi trong vòng 1 ngày