You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... /node_modules/nopt/lib/nopt.js:239 if (arg.match(/^-{2,}$/)) { ^TypeError: Object 123 has no method 'match' at parse ( ... /node_modules/nopt/lib/nopt.js:239:13) at nopt ( ... /node_modules/nopt/lib/nopt.js:40:3)
Contrived as this may seem, in the wild I found that yeoman-generator actually does this.
The text was updated successfully, but these errors were encountered:
I have made a little change to my local version of nopt that is working as a band aid for this with yeoman at the moment, and that was changing line 237 to var arg = args[i].toString(). This is in no means a permanent fix, but for the replacement of arguments when calling a yo command it seems to be working for me.
darcyclarke
changed the title
nopt breaks on arguments passed in as numbers
[BUG] nopt breaks on arguments passed in as numbers
Jul 28, 2022
Please consider this minimal example:
Output:
Contrived as this may seem, in the wild I found that
yeoman-generator
actually does this.The text was updated successfully, but these errors were encountered: