Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add a way to create config options from a fixed set of choices #1414

Open
gsingh93 opened this issue Dec 5, 2022 · 0 comments · May be fixed by #2090
Open

Add a way to create config options from a fixed set of choices #1414

gsingh93 opened this issue Dec 5, 2022 · 0 comments · May be fixed by #2090

Comments

@gsingh93
Copy link
Member

gsingh93 commented Dec 5, 2022

As an example, the context-sections setting has a fixed set of values it can be set to, i.e. "regs", "stack", etc. The validate_context_sections will be triggered when this setting changes to validate that these options are correct.

However, we have other config options that don't have this validation, and adding a new config option is a hassle to add this type of validation every time. We should do something similar to argparse, where we can specify choices, and the value will be validated when it is set automatically.

@gsingh93 gsingh93 added this to the March 2023 milestone Dec 5, 2022
@gsingh93 gsingh93 modified the milestones: March 2023, Future Jan 4, 2023
@gsingh93 gsingh93 modified the milestones: 2023.06, Future May 17, 2023
@gsingh93 gsingh93 modified the milestones: 2023.09, Future Jun 30, 2023
@diivi diivi linked a pull request Mar 25, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

1 participant