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

Refactor how CLI args are applied to Builder #2984

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pvdrz
Copy link
Contributor

@pvdrz pvdrz commented Nov 20, 2024

These changes abstract away the most commonly used patterns to apply CLI args to the Builder:

if bool_cli_arg {
    builder = builder.method(bool_cli_arg);
}
if let Some(value) = option_cli_arg {
    builder = builder.method(value);
}
for value in vec_cli_arg {
    builder = builder.method(value);
}

@pvdrz pvdrz force-pushed the pvdrz/refactor-cli-arg-application branch 2 times, most recently from 126f869 to 9da8f7b Compare November 21, 2024 19:51
@pvdrz pvdrz force-pushed the pvdrz/refactor-cli-arg-application branch from 9da8f7b to 3bd911e Compare November 21, 2024 20:05
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