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

Respect negate property in attributeName #2250

Merged
merged 1 commit into from
Sep 15, 2024

Conversation

shadowspawn
Copy link
Collaborator

@shadowspawn shadowspawn commented Sep 13, 2024

Pull Request

Problem

attributeName was unconditionally stripping the leading no- from the option name. The rest of the code respects the negate property, allowing an author to override the negate property and have an option name noFoo.

This is a trimmed down version of #2238, which had tests.

Solution

Use the negate property in attributeName() which is consistent with rest of code testing for negation.

Not adding tests as do not wish to commit to supporting overriding negation in this way. Adding this change as a reasonable thing to do locally.

Added @bernard-wagner as co-author on commit. If you are approve this PR @abetomo, I'll do the merge to try and make sure the co-author attribution gets preserved (bit fragile).

@shadowspawn shadowspawn merged commit 64c2bce into tj:develop Sep 15, 2024
11 checks passed
@shadowspawn shadowspawn deleted the feature/attributename branch September 15, 2024 02:12
@shadowspawn shadowspawn added the pending release Merged into a branch for a future release, but not released yet label Sep 15, 2024
@shadowspawn shadowspawn removed the pending release Merged into a branch for a future release, but not released yet label Dec 30, 2024
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.

2 participants