From 3a3018a8d2f7a1cd6ba87c2ead87f9a19a0345dc Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 10 Aug 2015 07:51:54 -0400 Subject: [PATCH] fix(cloudcmd) when params.prefix used, put it to options.prefix --- lib/cloudcmd.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/cloudcmd.js b/lib/cloudcmd.js index 7a71d7b9..8279b036 100644 --- a/lib/cloudcmd.js +++ b/lib/cloudcmd.js @@ -55,8 +55,10 @@ options = p.config || {}, keys = Object.keys(options); - if (typeof params.prefix !== undefined) + if (typeof params.prefix !== undefined) { console.log('cloudcmd: prefix property deprecated, use config.prefix instead'); + options.prefix = params.prefix; + } keys.forEach(function(name) { var value = options[name];