Skip to content

Commit

Permalink
Merge pull request #62 from browserstack/fix-folder-flg
Browse files Browse the repository at this point in the history
Fix argument order sent via command line to browserstack local binary.
  • Loading branch information
raghuhit authored Oct 19, 2018
2 parents b077a8f + 5a5a32a commit ad3e3de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Local.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ad3e3de

Please sign in to comment.