We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b6e0e8 commit b852ca2Copy full SHA for b852ca2
1 file changed
cli/cmds/download-file.js
@@ -37,13 +37,13 @@ var utils = require('../utils');
37
38
var downloadFile = function(args) {
39
return new Promise(function(resolve, reject) {
40
- if (args._.length < 2) {
+ if (args._.length < 1) {
41
utils.badArgs(module, "missing url and destPath");
42
reject();
43
return;
44
}
45
46
- if (args._.length < 3) {
+ if (args._.length < 2) {
47
utils.badArgs(module, "missing destPath");
48
49
0 commit comments