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: obsolete throwOnUnexpectedArg in favor of UnrecognizedArgumentHandling enum #340

Merged
merged 1 commit into from
Feb 11, 2020

Conversation

natemcmaster
Copy link
Owner

@natemcmaster natemcmaster commented Feb 9, 2020

Fixes #339

What

Adds new API, UnrecognizedArgumentHandling, that I think is a better name for the behavior. It also allows room to add new ways to handle unrecognized arguments.

Why

This is a common pitfall of using this library. It's legacy API from the original fork of this code, and it's not possible to get rid of it easily. So, this is phase 1 = obsolete it in 2.6. Phase 2 = delete it for the 3.0 release.

@natemcmaster natemcmaster force-pushed the throw-unexpected-args branch from 238a068 to 42b8994 Compare February 9, 2020 23:19
@natemcmaster natemcmaster merged commit 42b8994 into release/2.x Feb 11, 2020
@natemcmaster natemcmaster deleted the throw-unexpected-args branch February 11, 2020 05:28
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.

Obsolete API using throwOnUnexpectedArg Consider renaming the API ThrowOnUnexpectedArgument
1 participant