Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Mutually exclusive enum values #904

Open
johnbocchi opened this issue Oct 16, 2023 · 1 comment
Open

Mutually exclusive enum values #904

johnbocchi opened this issue Oct 16, 2023 · 1 comment

Comments

@johnbocchi
Copy link

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

@SJFriedl
Copy link

This sounds like you might have to enforce this with actual program code; I haven't used the parameter set stuff, but I'm not sure it's flexible enough to do what you want.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants