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!
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
この issue ではファイル、テスト、エントリポイントが指定されていません。まず DateTime のコマンドラインパラメーターがどのように解析されているかを特定し、次に DateTimeFormat 属性または同等のものが受け入れる形式をどのように指定すべきか、また検証がどのように動作すべきかを判断します。呼び出し元が文字列の解析にフォールバックせずに形式を指定できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp
- 領域
- cli
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100