From b011cafbed15e68f0669b4a03963e3e47775bda5 Mon Sep 17 00:00:00 2001 From: Steven Lybeck Date: Mon, 14 Aug 2017 20:13:17 -0700 Subject: [PATCH] Fix argument order sent via command line to browserstack local binary. Previously, the folder flag and folder value were split by the key argument. --- lib/Local.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Local.js b/lib/Local.js index 4549cdf..691d97e 100644 --- a/lib/Local.js +++ b/lib/Local.js @@ -234,12 +234,12 @@ function Local(){ this.getBinaryArgs = function(){ var args = ['--daemon', this.opcode, '--log-file', this.logfile]; - if(this.folderFlag) - args.push(this.folderFlag); if(this.key) { args.push('--key'); args.push(this.key); } + if(this.folderFlag) + args.push(this.folderFlag); if(this.folderPath) args.push(this.folderPath); if(this.forceLocalFlag)