Exit-code and argument-handling leftovers: -r read errors exit 2, wordlist-gen ignores positionals and flags after them
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Read main.go:582-584 and loadPool for the -r exit code, then inspect tools/wordlist-gen.go:156 and the shared argument-parsing helper. Run the existing tests and add cases for the specified file-error codes, positional arguments, invalid flags, and banner validation order. Done means tests pin the expected behavior and wordlist-gen acme.com exits 2 with a hint; linked PR #133 is already open.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Evidence
- A missing
-rfile exits 2 (main.go:582-584,loadPoolerror returnsexitUsage). A missing-exclude-file,-dL,-wor-difffile exits 1. The exit-code table from #82 says I/O failures are 1. tools/wordlist-gen.go:156never checksfs.Args().wordlist-gen acme.com -o -silently ignoresacme.comand the-o -after it (the #29 class of bug), and writes./wordlist.txtwith 38 common entries. An invalid-combineand an empty-oexit 1 rather than 2.- UX nits: the SIMULATION banner prints before argument validation (
subenum -simulatewith no domain shows the banner, then "missing "), and a missing-exclude-fileis reported before a missing domain.
Suggested approach
- Return
exitFailurefor I/O errors inloadPooland keep 2 for parse errors. - In wordlist-gen, use interspersed parsing (same helper as main) and reject positionals with "did you mean -domain?" (exit 2).
- Validate arguments before printing banners.
Done when
Tests pin each exit code, and wordlist-gen acme.com exits 2 with a hint.
- Ngôn ngữ chính
- Go
- Star
- 1
- Fork
- 1
- Merge trung bình
- 5 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Có Dockerfile hoặc tệp Docker Compose
- 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 TMHSDigital/subenum
-
area: cli enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
TMHSDigital/subenum#136 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
community documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
TMHSDigital/subenum#135 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: dns enhancement good first issue
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 90/100
TMHSDigital/subenum#134 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
community marketing priority: low
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
TMHSDigital/subenum#132 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature priority: low
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
TMHSDigital/subenum#131 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của TMHSDigital/subenum
Issue tương tự
-
Service process inherits the caller's cwd at first use, holding that folder open on Windows (EBUSY)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[docs] Media elements cannot load from a custom protocol (video/audio report MEDIA_ERR_SRC_NOT_SUPPORTED)Có thể đã có người làm @vst93 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
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 76/100
evilmartians/lefthook#1588 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
gravitational/teleport#69847 ·
Maintainer thường phản hồi trong vòng 11 ngày