rtfpessoa/diff2html-cli

ignore.map is not a function

whyboris opened this issue ยท 2 comments

Currently using the --ig flag does not work:

diff2html --ig package-lock.json

results in:

TypeError: ignore.map is not a function

const ignoreArgs = ignore.map(file => `":(exclude)${file}"`);

I've not looked into it, just reporting ๐Ÿ˜…

๐ŸŽ‰ Looked into it, it's just a matter of updating the yargs type ๐Ÿ˜‰

type: 'array',

instead of nargs: 1, this line:
https://github.com/rtfpessoa/diff2html-cli/blob/master/src/yargs.ts#L177

Released as version 5.1.1