From b852ca28fd4b2e1587dd4d3f5ee7fee8a89f39bf Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Fri, 19 Sep 2014 17:04:04 -0700 Subject: [PATCH] fix hft commands that broke because of the 1 -> 0 switch --- cli/cmds/download-file.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/cmds/download-file.js b/cli/cmds/download-file.js index fcedf853..9d8baffb 100644 --- a/cli/cmds/download-file.js +++ b/cli/cmds/download-file.js @@ -37,13 +37,13 @@ var utils = require('../utils'); var downloadFile = function(args) { return new Promise(function(resolve, reject) { - if (args._.length < 2) { + if (args._.length < 1) { utils.badArgs(module, "missing url and destPath"); reject(); return; } - if (args._.length < 3) { + if (args._.length < 2) { utils.badArgs(module, "missing destPath"); reject(); return;