Files
node/doc/api
kovanandjorge guerrero 2ff5cb13f5 doc,test: clarify --eval syntax for leading '-' scripts
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.

Co-authored-by: jorge guerrero <grrr.jrg@gmail.com>
Refs: https://github.com/nodejs/node/issues/43397
Refs: https://github.com/nodejs/node/pull/61962
PR-URL: https://github.com/nodejs/node/pull/62244
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2026-03-30 17:20:24 +02:00
..
2026-03-10 20:20:07 +01:00
2025-07-15 17:18:42 +00:00
2024-11-01 03:43:53 +00:00
2026-02-19 11:14:04 +01:00
2026-02-23 20:31:15 +01:00
2026-01-16 09:15:10 -05:00
2025-11-10 13:30:11 +01:00
2026-03-10 14:48:50 +01:00
2026-01-13 10:04:48 -03:00
2026-02-19 11:13:44 +01:00
2025-07-15 17:18:42 +00:00
2025-07-15 17:18:42 +00:00
2025-08-29 02:24:57 +00:00
2026-03-28 18:14:04 +01:00
2026-03-02 20:26:25 +00:00
2026-02-23 20:31:15 +01:00
2025-06-09 23:45:29 +02:00
2025-07-15 17:18:42 +00:00
2025-07-15 17:18:42 +00:00
2026-01-26 13:45:30 +01:00
2026-02-22 01:20:37 +01:00
2026-01-13 10:04:48 -03:00