minimistjs / minimist

parse argument options
MIT License
515 stars 30 forks source link

TypeError When Not Supplying Original Arguments #44

Closed cantwellsean0127 closed 11 months ago

cantwellsean0127 commented 11 months ago

Whenever var argv = require('minimist')(process.argv.slice(2)); is written as var argv = require('minimist')();, a TypeError is thrown.

ljharb commented 11 months ago

That’s expected - undefined is not a valid type for that argument.