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 options class, take 2 #71

Merged
merged 21 commits into from
Apr 29, 2023
Merged

Add options class, take 2 #71

merged 21 commits into from
Apr 29, 2023

Conversation

sirbrillig
Copy link
Owner

@sirbrillig sirbrillig commented Apr 29, 2023

This replaces the options array with a CliOptions class that has validation.

This is a second attempt, since #48 took too long and was too big a refactor. This time, we create the CliOptions class but then convert it back into an array to allow for easier migration.

In later PRs we can migrate other functions to accept CliOptions instead of the array.

@sirbrillig sirbrillig self-assigned this Apr 29, 2023
@sirbrillig sirbrillig mentioned this pull request Apr 29, 2023
@sirbrillig sirbrillig marked this pull request as ready for review April 29, 2023 22:38
@sirbrillig sirbrillig merged commit d7eb116 into master Apr 29, 2023
@sirbrillig sirbrillig deleted the add-options-class-2 branch April 29, 2023 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant