Closed johndeighan closed 4 months ago
Can you provide your code, and an example invocation and the results?
I was not able to reproduce this problem from your description.
const parser = require('minimist');
const result = parser(process.argv.slice(2), {
default: {foo: 'bar', example: undefined}
});
console.log(result);
% node index.js
{ _: [], foo: 'bar', example: undefined }
There isn't enough information to help with this issue, and no activity in a month. Closing this issue as can't reproduce.
Feel free to open a new issue if it comes up again, with new information and renewed interest.
If I want a particular option to have the default value undefined, and I don't supply that option on the command line, it isn't returned as undefined.