-
Couldn't load subscription status.
- Fork 11
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
const { parseArgs } = require('@pkgjs/parseargs');
const options = {
withValue: ['foo']
};
const result = parseArgs(undefined, options);
console.log(result.values);Actual:
% node withValue.js --flag --foo bar
{ flag: [ undefined ], foo: [ 'bar' ] }
I expect a plain string for foo rather than an array, and no "value" at all for flag.
Expected:
% node withValue.js --flag --foo bar
{ foo: 'bar' }
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working