Skip to content

doc,test: clarify --eval syntax for leading '-' scripts#62244

Open
kovan wants to merge 1 commit intonodejs:mainfrom
kovan:eval-leading-hyphen-syntax
Open

doc,test: clarify --eval syntax for leading '-' scripts#62244
kovan wants to merge 1 commit intonodejs:mainfrom
kovan:eval-leading-hyphen-syntax

Conversation

@kovan
Copy link
Contributor

@kovan kovan commented Mar 13, 2026

If the script passed to --eval starts with a hyphen, the CLI parser
treats it as another option flag. Document the --eval=<script> form
as the workaround and add tests for --eval=-42, --eval=-0, and the
-e -p missing-argument error.

Refs: #43397
Continues the work from #61962

🤖 Generated with Claude Code

If the script passed to --eval starts with a hyphen, the CLI parser
treats it as another option flag. Document the --eval=<script> form
as the workaround and add tests for --eval=-42, --eval=-0, and the
-e -p missing-argument error.

Refs: nodejs#43397
Continues the work from nodejs#61962
@nodejs-github-bot nodejs-github-bot added the needs-ci PRs that need a full CI run. label Mar 13, 2026
@codecov
Copy link

codecov bot commented Mar 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.67%. Comparing base (da5843b) to head (cb4b2d3).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #62244      +/-   ##
==========================================
- Coverage   89.67%   89.67%   -0.01%     
==========================================
  Files         676      676              
  Lines      206469   206469              
  Branches    39537    39532       -5     
==========================================
- Hits       185157   185154       -3     
- Misses      13448    13469      +21     
+ Partials     7864     7846      -18     

see 48 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants