commandlineparser / commandlineparser/commandline

have autohelp print values of enums in verbs?

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

描述

I have several verbs (subcommands) in my app. One of those verbs takes in an enum value. Is there a way where i can have the autohelp print the enum values possible?

or in another way, in

`myapp mysubcommand --help`

i would like to have the help message print the enum values of one of the required parameters. I found other bugs that say how to do it for options only by basically redefining the help in the initial program.cs, but i can't find any way to do it for a verb.

貢獻指南

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

研究方向

該 issue 沒有指定任何儲存庫檔案或測試。先從由 `myapp mysubcommand --help` 執行的 autohelp 路徑著手,確定動詞參數在哪裡進行渲染;當說明輸出列出該 enum 的可能值時,即視為完成。

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

評估

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

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

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