Skip to content

BREAKING: Accept more truthy values for options and reject invalid ones #815

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

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

fmeum
Copy link
Contributor

@fmeum fmeum commented Aug 8, 2023

All of true, on, yes, y, and 1 are now recognized as boolean values indicating true when passed to boolean options. If the value of a boolean option is neither of those nor any of the corresponding "falsy" values, an error is reported instead of silently accepting the value and interpreting it as false.

Note: This change is mildly breaking as it should only break fuzzer invocations that weren't behaving as intended.

@fmeum fmeum requested a review from br-lewis August 8, 2023 10:10
All of `true`, `on`, `yes`, `y`, and `1` are now recognized as boolean
values indicating `true` when passed to boolean options. If the value of
a boolean option is neither of those nor any of the corresponding
"falsy" values, an error is reported instead of silently accepting the
value and interpreting it as `false`.

Note: This change is mildly breaking as it should only break fuzzer
invocations that weren't behaving as intended.
@fmeum fmeum force-pushed the FUZZ-778-accept-0-1-boolean branch from d0e941b to 63e543e Compare August 8, 2023 12:14
@fmeum fmeum enabled auto-merge (rebase) August 8, 2023 12:14
@fmeum fmeum merged commit 19fbfb7 into main Aug 8, 2023
@fmeum fmeum deleted the FUZZ-778-accept-0-1-boolean branch August 8, 2023 12:39
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