commandlineparser / commandlineparser/commandline
ushort and short not supported
未關閉
enhancement
- 主要語言
- C#
- 星號
- 4.8k
- 分支
- 478
- PR 合併指標
- 30 天內沒有已合併 PR
描述
```
class Options
{
[Option('p', "port", Required = false, HelpText = "port number")]
public int Port { get;set; }
}
```
If i change the type of Port to ushort or short I get an error when starting the program:
"ERROR(S):
Error setting value to option 'p, port': Check if Option or Value attribute values are set
properly for the given type."
Expected behavior:
1. clear error message that the type is not supported
2. support the types ushort and short
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
使用 C# Options 範例重現回報的錯誤,將 Port 分別改為 int、ushort 和 short。追蹤選項值的轉換和錯誤回報路徑;當 ushort 和 short 能夠正常運作,或收到明確的不支援類型訊息,且測試涵蓋這兩種情況時,即視為完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- csharp
- 領域
- cli
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100