From 5a5a32acc1f915fbbf7d1b87dcd9418677c62531 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 6381fb7..51e5b8c 100644 --- a/lib/Local.js +++ b/lib/Local.js @@ -199,12 +199,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)