commandlineparser / commandlineparser/commandline

Ability to use Object/Tuple as Option

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

描述

Thanks for this awesome library!

Is there any possibility to to something like this:

```csharp
[Option('p', "position", Required = true, HelpText = "This will be cool")]
public object Position{ get; set; }
```

console:
```set-position -p {1,1,1}```

of course `Position` can be a typed object as well or maybe a tuple...
What do you think?

貢獻指南

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

研究方向

Issue 將屬性 [Option] 和命令 set-position -p {1,1,1} 列為期望的用法,但沒有指出實作入口或測試。首先釐清具型別物件和 tuple 應如何表示及轉換,然後找出選項解析和轉換測試;對於支援的型別,行為達成共識並具備涵蓋後,即可視為完成。

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

評估

技術堆疊
csharp
領域
cli
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

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

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