Custom npm scripts, -v and -h not working?

Viewed 24

I'm creating a custom npm script with yargs and inquirer. My command can take -v for "verbose" and -h for "help".

All worked fine with npx, but if I add the script to package.json scripts, and use it with npm run, -h and -v will be taken by npm and print out npm's help and version.

Adding -- not working either.

Any workaround?

0 Answers
Related