From ef0fb11a235be1150a3a3cbae1453a09ec66b6d7 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 30 Jun 2015 05:31:38 -0400 Subject: [PATCH] fix(cloudcmd) ignore commandl line options when --save flag set --- bin/cloudcmd.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/cloudcmd.js b/bin/cloudcmd.js index ceb4881d..12150c2f 100755 --- a/bin/cloudcmd.js +++ b/bin/cloudcmd.js @@ -89,10 +89,12 @@ if (args.password) options.password = args.password; - if (args.save) - config.save(start); - else + if (!args.save) start(options); + else + config.save(function() { + start(options); + }); } function deprecate(was, became) {