node
node copied to clipboard
util: support negative options for `parseArgs`
This PR tries to support negative options like the format --no-foo
for parseArgs
by adding a flag allowNegative
in the
config
of parseArgs
. It works for general CLI flag and options
passed to parseArgs
.
By default, allowNegative
is false
in order to bring a breaking change.
Refs: #53095