commandlineparser / commandlineparser/commandline

GetoptMode = true suppresses help.

未關閉
#907 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
C#
星號
4.8k
分支
478
PR 合併指標
30 天內沒有已合併 PR

描述

**Describe the bug**
var parser = new Parser(opts => { opts.GetoptMode = true; });
result = parser.ParseArguments....

opts.GetoptMode = true causes the help to be suppressed

**To Reproduce**
Make your own "new Parser" with only GetoptMode = true

**Expected behavior**
The help should show up regardless

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional context**
Appending other options to "new Parser" didn't seem to help.

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

從報告中所示的 Parser 建構和 ParseArguments 呼叫開始,接著追蹤 GetoptMode 如何影響說明處理。使用僅設定為 GetoptMode = true 的 parser 重現此問題,並將說明輸出與預設 parser 進行比較。當在此設定下顯示說明,且有 regression test 涵蓋此問題時,即完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
csharp
領域
cli
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。