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

split: add a method to convert ArgMatches to Settings #2871

Merged
merged 1 commit into from
Jan 30, 2022

Conversation

jfinkels
Copy link
Collaborator

Create a Settings::from method that converts a clap::ArgMatches
instance into a Settings instance. This eliminates the unnecessary
use of a mutable variable when initializing the settings.

This does not change the behavior of split, is just a re-organization of the code.

@jfinkels jfinkels force-pushed the split-settings-methods branch from 5e17b15 to ff821a0 Compare January 16, 2022 16:36
@kimono-koans
Copy link
Contributor

kimono-koans commented Jan 16, 2022

My PR is failing on the exact same GNU test.

See: #2875

@tertsdiepraam
Copy link
Member

Yeah, don't worry about it, it's showing up on all recent PRs, so it's not your fault

Create a `Settings::from` method that converts a `clap::ArgMatches`
instance into a `Settings` instance. This eliminates the unnecessary
use of a mutable variable when initializing the settings.
@jfinkels jfinkels force-pushed the split-settings-methods branch from ff821a0 to 58f2000 Compare January 17, 2022 13:58
@sylvestre sylvestre merged commit 57dc11e into uutils:main Jan 30, 2022
@jfinkels jfinkels deleted the split-settings-methods branch February 12, 2022 19:17
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.

4 participants