Skip to content

Commit d9323d7

Browse files
authored
fix(start): pass app args with correct amount of -- (#3879)
1 parent aee077f commit d9323d7

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

packages/api/cli/src/electron-forge-start.ts

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ import { resolveWorkingDir } from './util/resolve-working-dir';
3737
3838
...will pass the arguments "-d -f foo.txt" to the Electron app.`
3939
)
40-
.passThroughOptions(true) // allows args to be passed down to the Electron executable
4140
.action((targetDir: string) => {
4241
dir = resolveWorkingDir(targetDir);
4342
})

packages/api/cli/src/electron-forge.ts

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ program
1919
.command('package', 'Package the current Electron application.')
2020
.command('make', 'Generate distributables for the current Electron application.')
2121
.command('publish', 'Publish the current Electron application.')
22+
.passThroughOptions(true)
2223
.hook('preSubcommand', async (_command, subcommand) => {
2324
if (!process.argv.includes('--help') && !process.argv.includes('-h')) {
2425
const runner = new Listr<SystemCheckContext>(

0 commit comments

Comments
 (0)