Skip to content

Commit

Permalink
Fixed Issue #44
Browse files Browse the repository at this point in the history
[v1.2.8] Added a default value for the args parameter.
  • Loading branch information
cantwellsean0127 committed Aug 20, 2023
1 parent fdbb909 commit 721be35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function isConstructorOrProto(obj, key) {
return (key === 'constructor' && typeof obj[key] === 'function') || key === '__proto__';
}

module.exports = function (args, opts) {
module.exports = function (args = process.argv.slice(2), opts) {
if (!opts) { opts = {}; }

var flags = {
Expand Down

0 comments on commit 721be35

Please sign in to comment.