-
-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
#!/usr/bin/env node
const mri = require('mri')
console.log(process.argv)
console.log(mri(process.argv.slice(2)))./args.js -a -b '-c foo'[
'/usr/local/Cellar/node/16.0.0_1/bin/node',
'/Users/j/web/pev2-cli/foo.js',
'-a',
'-b',
'-c foo'
]
{
_: [],
a: true,
b: true,
c: true,
' ': true,
f: true,
o: [ true, true ]
}Is that intended?
I would have expected this:
{
_: ['-c foo'],
a: true,
b: true
}Or maybe this (but I find the result above much more intuitive):
{
_: [],
a: true,
b: true,
c: 'foo'
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels