Skip to content

Commit

Permalink
Fix target option on macOS (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Jan 7, 2024
1 parent 31da4c3 commit b597dec
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions index.js
Expand Up @@ -238,14 +238,15 @@ const baseOpen = async options => {
}
}

if (options.target) {
cliArguments.push(options.target);
}

if (platform === 'darwin' && appArguments.length > 0) {
cliArguments.push('--args', ...appArguments);
}

// This has to come after `--args`.
if (options.target) {
cliArguments.push(options.target);
}

const subprocess = childProcess.spawn(command, cliArguments, childProcessOptions);

if (options.wait) {
Expand Down

0 comments on commit b597dec

Please sign in to comment.