commandlineparser / commandlineparser/commandline
Support for specifying valid date/time formats
- 主要語言
- C#
- 星號
- 4.8k
- 分支
- 478
- PR 合併指標
- 30 天內沒有已合併 PR
描述
It would be really helpful if there was a way to provide the **valid, accepted** date/time formats for parameter of type `DateTime`. Right now, some formats work - others don't - and I don't see much support for specifying which ones I'd like to accept - meaning in the end I need to use `string` as datatype and do the parsing myself (suboptimal).....
Any hope a feature like that might be added sooner or later? For a parameter of type `DateTime`, allow a `DateTimeFormat` attribute or some other way of specifying the accepted, valid date format strings.
Thanks!
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
The issue names no files, tests, or entry points. Start by locating how DateTime command-line parameters are parsed, then determine how a DateTimeFormat attribute or equivalent should specify accepted formats and how validation should behave; done means callers can provide formats without falling back to string parsing.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- csharp
- 領域
- cli
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100