node/test/fixtures/parse-args.js
René c08afc5712
test: check util.parseArgs argv parsing with actual process execution
PR-URL: https://github.com/nodejs/node/pull/61089
Refs: https://github.com/nodejs/node/pull/60814
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Aviv Keller <me@aviv.sh>
2026-01-13 10:04:56 -03:00

5 lines
147 B
JavaScript

const { parseArgs } = require('util');
const parsedArgs = parseArgs({ strict: false }).values;
process.stdout.write(JSON.stringify(parsedArgs));