commandlineparser / commandlineparser/commandline

Mutually exclusive enum values

Offen
#904 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C#
Sterne
4.8k
Forks
478
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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"?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.