We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5577643 commit ac62359Copy full SHA for ac62359
1 file changed
lib/args.js
@@ -41,11 +41,20 @@ module.exports = function (args) {
41
42
} else {
43
44
- config = args[1] || {};
+ if (args[1] === null || args[1] === undefined) {
45
46
- if (!config.files) {
47
- config.files = args[0];
+ config = args[0];
+
48
+ } else {
49
50
+ // finally, second arg could be a plain object for config
51
+ config = args[1] || {};
52
53
+ if (!config.files) {
54
+ config.files = args[0];
55
+ }
56
}
57
58
59
60
break;
0 commit comments