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

Fix partial matching #501

Merged
merged 9 commits into from
Nov 15, 2023
Merged

Fix partial matching #501

merged 9 commits into from
Nov 15, 2023

Conversation

jamesmbaazam
Copy link
Contributor

@jamesmbaazam jamesmbaazam commented Nov 7, 2023

This PR closes #499 by replacing all match.arg() calls with rlang::arg_match() because the latter prevents partial matching by throwing an error.

The PR also fixes previously partially matched arguments.

@jamesmbaazam
Copy link
Contributor Author

@seabbs @sbfnk
Fixing these lints will be out of the scope of this PR. I've actually been meaning to raise an issue about them. Would you recommend we fix and merge the linting issues here then rebase this branch on main afterwards?

@jamesmbaazam jamesmbaazam marked this pull request as ready for review November 15, 2023 16:10
@jamesmbaazam jamesmbaazam requested review from seabbs and sbfnk November 15, 2023 16:50
Copy link
Contributor

@sbfnk sbfnk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great stuff!

@jamesmbaazam jamesmbaazam merged commit bcde62d into main Nov 15, 2023
9 checks passed
@jamesmbaazam jamesmbaazam deleted the fix-pmatch branch November 15, 2023 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Safeguards against partial matching
2 participants