Title: `util.parseArgs()` omits the first positional argument when used with the `--eval=` option · Issue #60808 · nodejs/node · GitHub
Open Graph Title: `util.parseArgs()` omits the first positional argument when used with the `--eval=` option · Issue #60808 · nodejs/node
X Title: `util.parseArgs()` omits the first positional argument when used with the `--eval=` option · Issue #60808 · nodejs/node
Description: Version v25.2.1 Platform Linux DESKTOP-O26JEMV 6.6.87.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun 5 18:30:46 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps will reproduce the bug? node --eval="impor...
Open Graph Description: Version v25.2.1 Platform Linux DESKTOP-O26JEMV 6.6.87.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun 5 18:30:46 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps wi...
X Description: Version v25.2.1 Platform Linux DESKTOP-O26JEMV 6.6.87.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun 5 18:30:46 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps wi...
Opengraph URL: https://github.com/nodejs/node/issues/60808
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`util.parseArgs()` omits the first positional argument when used with the `--eval=` option","articleBody":"### Version\n\nv25.2.1\n\n### Platform\n\n```text\nLinux DESKTOP-O26JEMV 6.6.87.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun 5 18:30:46 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux\n```\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\n```sh\nnode --eval=\"import {parseArgs} from 'node:util';console.log(parseArgs({allowPositionals: true}))\" -- arg1 arg2\n```\n\n### How often does it reproduce? Is there a required condition?\n\nAlways\n\n### What is the expected behavior? Why is that the expected behavior?\n\n```\n{\n values: [Object: null prototype] {},\n positionals: [ 'arg1', 'arg2' ]\n}\n```\n\n### What do you see instead?\n\n```\n{ values: [Object: null prototype] {}, positionals: [ 'arg2' ] }\n```\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/kit494way","@type":"Person","name":"kit494way"},"datePublished":"2025-11-22T05:00:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/60808/node/issues/60808"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7005ad5c-0e06-62b8-d038-3e9db5c4ec8a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 818A:232EF3:AC0FA6:EB2E02:6A4D51AC |
| html-safe-nonce | 4829b952a52f8a04b2c877e69f7177e4f0042b0eef42b831b8ed74f6698d0ff2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MThBOjIzMkVGMzpBQzBGQTY6RUIyRTAyOjZBNEQ1MUFDIiwidmlzaXRvcl9pZCI6IjY4ODg4NDQ5NjE0ODkxNzkwNTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0284b6a6cf5ce4272a10571e9b67666d1d34563dce6474dca3856eecb8890b22 |
| hovercard-subject-tag | issue:3653893590 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/60808/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cfcdbecb02e951a8df655491089689a24ca8cf8e1ca3d926d8b989c615c0e99f/nodejs/node/issues/60808 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cfcdbecb02e951a8df655491089689a24ca8cf8e1ca3d926d8b989c615c0e99f/nodejs/node/issues/60808 |
| og:image:alt | Version v25.2.1 Platform Linux DESKTOP-O26JEMV 6.6.87.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun 5 18:30:46 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps wi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kit494way |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width