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

expand: simplify signature of expand_shortcuts() #3644

Merged
merged 1 commit into from
Jun 17, 2022

Conversation

cakebaker
Copy link
Contributor

I noticed that many utils preprocess arguments with:

let args = args
    .collect_str(InvalidEncodingHandling::Ignore)
    .accept_any();

and so this PR adds this functionality to expand, which allows a much simpler function signature for expand_shortcuts().

@sylvestre sylvestre merged commit d4f6b0b into uutils:main Jun 17, 2022
@cakebaker cakebaker deleted the simplify_fn_expand_shortcuts branch June 17, 2022 09:53
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.

None yet

2 participants