commandlineparser / commandlineparser/commandline

Is it possible to add -h, -v to --help, --version?

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

描述

I would like to make my app behave consistently and add the short variants ala, -v, --version and -h, --help to trigger the built-in AutoVersion and AutoHelp; is this possible? How would one accomplish that?

貢獻指南

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

研究方向

首先追蹤內建選項 AutoVersion 和 AutoHelp 在命令列解析器中的註冊與呼叫方式。檢查是否可以為現有的 --version 和 --help 選項設定短別名,並透過相關的解析器測試驗證 -v 和 -h 的預期行為。當所要求的別名能夠一致地運作,或支援的設定已清楚記錄時,即可視為完成。

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

評估

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

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

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