-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
src: improve parsing of boolean options #58039
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
src: improve parsing of boolean options #58039
Conversation
Review requested:
|
bf2dcc5
to
01cedaa
Compare
cc @avivkeller |
This allows passing |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #58039 +/- ##
==========================================
- Coverage 90.26% 90.20% -0.06%
==========================================
Files 630 630
Lines 186159 186446 +287
Branches 36474 36620 +146
==========================================
+ Hits 168036 168189 +153
- Misses 10974 11044 +70
- Partials 7149 7213 +64
🚀 New features to boost your workflow:
|
LGTM with the |
will do |
Co-authored-by: Marco Ippolito <[email protected]>
Commit Queue failed- Loading data for nodejs/node/pull/58039 ✔ Done loading data for nodejs/node/pull/58039 ----------------------------------- PR info ------------------------------------ Title src: improve parsing of boolean options (#58039) Author Edy Silva <[email protected]> (@geeksilva97) Branch geeksilva97:improve-boolean-parsing -> nodejs:main Labels c++, author ready, commit-queue-squash, config Commits 3 - src: improve parsing of boolean options - test: update test - fixup: remove unneeded flag Committers 2 - Edy Silva <[email protected]> - GitHub <[email protected]> PR-URL: https://github.com/nodejs/node/pull/58039 Reviewed-By: Marco Ippolito <[email protected]> ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/58039 Reviewed-By: Marco Ippolito <[email protected]> -------------------------------------------------------------------------------- ℹ This PR was created on Sat, 26 Apr 2025 17:58:37 GMT ✔ Approvals: 1 ✔ - Marco Ippolito (@marco-ippolito) (TSC): https://github.com/nodejs/node/pull/58039#pullrequestreview-2807571351 ✘ This PR needs to wait 71 more hours to land (or 0 hours if there is one more approval) ✔ Last GitHub CI successful ℹ Last Full PR CI on 2025-04-30T16:10:21Z: https://ci.nodejs.org/job/node-test-pull-request/66517/ - Querying data for job/node-test-pull-request/66517/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/14761825273 |
It needs 1 more approval to land or has to wait a few more days |
Landed in 102d8cf |
PR-URL: #58039 Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
PR-URL: #58039 Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Refs #57960
This PR changes the way booleans are parsed from the config file. Instead of setting
--flag=true|false
, it adds or not the flag to the options