commandlineparser / commandlineparser/commandline
Mutually exclusive enum values
- 主要言語
- C#
- スター
- 4.8k
- フォーク
- 478
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hi,
I have 2 options, both required; the first is of type EventType (enum with 3 values: dpo, plms, ts); the second is of type NoticeType (enum with 3 values: Performance, Current, Process).
How can I set the Parser so that when I select "dpo" then I can select any value of NoticeType, when I select "plms" then I can select only "Performance" and "Current", and when I select "ts" then I can only select "Process"?
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
ファイル、テスト、エントリーポイントは特定されていません。まず、条件付き enum 検証が parser の動作として想定されているのか、それともカスタム検証メカニズムが必要なのかを明確にし、その後、関連するオプションおよび enum 検証のドキュメントまたは実装を見つけてください。Done は、dpo ではすべての NoticeType 値を、plms では Performance と Current のみを、ts では Process のみを受け入れることで実証する必要があります。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp
- 領域
- cli
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100