commandlineparser / commandlineparser/commandline
Zero is not allowed in range of sequence option specifications.
未關閉
- 主要語言
- C#
- 星號
- 4.8k
- 分支
- 478
- PR 合併指標
- 30 天內沒有已合併 PR
描述
I need a way to indicate that I don't accept any Value parameters.
I tried
[Value(0, Max=0)]
public IEnumerable Items {get; set;}
but get this error. Seems like there currently is no way to say you don't want any values. min value for the Max property is 1.
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
首先追蹤 Value 屬性如何驗證其 Max 屬性,以及 sequence 選項規格是如何表示的。檢查 Value(0, Max=0) 的行為,並決定應如何表示零值範圍;當所要求的語法被接受並由迴歸測試涵蓋時,即視為完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- csharp
- 領域
- cli
- Issue 類型
- 功能
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 35/100