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

Assume a string parameter to implies is name of boolean option. #1854

Merged
merged 1 commit into from Mar 15, 2023

Conversation

shadowspawn
Copy link
Collaborator

@shadowspawn shadowspawn commented Mar 12, 2023

Pull Request

Problem

It is an easy mistake to pass a string to .implies() instead of a hash. We have other routines that do just take option names, like .conflicts().

See: #1852

Solution

Assume the users intent was to set the option to true, like a simple boolean option.

An alternative would be to throw an error, but that would probably need to wait for a semver major release since it would break programs that might otherwise be functional.

(Both of these were included as possible approaches in #1852.)

ChangeLog

(Leaving out of changelog as this is a quiet fixup rather than a feature as such.)

Copy link
Collaborator

@abetomo abetomo left a comment

Choose a reason for hiding this comment

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

👍

@shadowspawn shadowspawn added the pending release Merged into a branch for a future release, but not released yet label Mar 15, 2023
@shadowspawn shadowspawn merged commit f4c7349 into tj:develop Mar 15, 2023
@shadowspawn shadowspawn deleted the feature/allow-string-implies branch March 15, 2023 05:58
@shadowspawn shadowspawn removed the pending release Merged into a branch for a future release, but not released yet label Apr 15, 2023
@shadowspawn
Copy link
Collaborator Author

Shipped in 10.0.1

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