Skip to content

Commit

Permalink
Fixed Issue #44
Browse files Browse the repository at this point in the history
[v1.2.8] Set default args parameter value to process.argv.split(2)
  • Loading branch information
cantwellsean0127 committed Aug 20, 2023
1 parent fdbb909 commit 0d3cf8e
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.split(2), opts) {
if (!opts) { opts = {}; }

var flags = {
Expand Down

0 comments on commit 0d3cf8e

Please sign in to comment.