commandlineparser / commandlineparser/commandline

Control over Help Text Headers

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

描述

When (and only when) the help text is shown, it adds the application name, version, and copyright info before writing the options details. However, I'd either like to include with every run, or exclude it completely so I can output my own info. However, I can't figure out how to do that.

I'm just using the default ParseArguments/MapResult code:

`
return Parser.Default.ParseArguments(args)
.MapResult(
(AddOptions opts) => RunAddAndReturnExitCode(opts),
(CommitOptions opts) => RunCommitAndReturnExitCode(opts),
(CloneOptions opts) => RunCloneAndReturnExitCode(opts),
errs => 1);
`

貢獻指南

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

研究方向

從 issue 中所示的 Parser.Default.ParseArguments 和 MapResult 進入點開始,然後追蹤說明文字的產生方式。當呼叫端能夠在每次執行時一致地包含應用程式標頭,或完全省略該標頭,且行為符合要求的選擇時,工作即告完成。

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

評估

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

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

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