Exit-code and argument-handling leftovers: -r read errors exit 2, wordlist-gen ignores positionals and flags after them
維護者通常 1 天內回覆
評估
研究方向
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.
由索引模型根據 Issue 內容生成。
描述
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.
- 主要語言
- Go
- 星號
- 1
- 分支
- 1
- 平均合併
- 5 天 2 小時
- 30 天內合併 PR
- 3
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 提供 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
TMHSDigital/subenum 的其他 Issue
-
area: cli enhancement good first issue
難度 2/5 1-3 小時 新手友好度 88/100
TMHSDigital/subenum#136 ·
維護者通常 1 天內回覆
-
community documentation good first issue
難度 2/5 1-3 小時 新手友好度 85/100
TMHSDigital/subenum#135 ·
維護者通常 1 天內回覆
-
area: dns enhancement good first issue
難度 2/5 1 小時以內 新手友好度 90/100
TMHSDigital/subenum#134 ·
維護者通常 1 天內回覆
-
community marketing priority: low
難度 5/5 一週以上 新手友好度 35/100
TMHSDigital/subenum#132 · 1 則留言 ·
維護者通常 1 天內回覆
-
feature priority: low
難度 5/5 一週以上 新手友好度 35/100
TMHSDigital/subenum#131 ·
維護者通常 1 天內回覆
查看 TMHSDigital/subenum 的全部 Issue
相似的 Issue
-
bug go
難度 2/5 1-3 小時 新手友好度 82/100
genkit-ai/genkit#6761 · 1 則留言 ·
維護者通常 2 天內回覆
-
ready
難度 2/5 1-3 小時 新手友好度 92/100
kubeflow/pipelines#14784 · 1 則留言 ·
維護者通常 2 天內回覆
-
bug frontend good first issue
難度 2/5 1-3 小時 新手友好度 86/100
維護者通常 1 天內回覆
-
trust: update-propagation-directive requires developer mode while add and remove do not可能已有人在做 @bhuvan-somisetty 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 2 天內回覆
-
難度 1/5 1 小時以內 新手友好度 82/100
oalders/clodhopper#133 ·