diff --git a/packages/core/src/electron-main/electron-main-application.ts b/packages/core/src/electron-main/electron-main-application.ts index 7c5a951ce7d33..2da08aa9b4031 100644 --- a/packages/core/src/electron-main/electron-main-application.ts +++ b/packages/core/src/electron-main/electron-main-application.ts @@ -722,10 +722,10 @@ export class ElectronMainApplication { protected async onSecondInstance(event: ElectronEvent, argv: string[], cwd: string): Promise { createYargs(this.processArgv.getProcessArgvWithoutBin(argv), process.cwd()) - .help(false) - .command('$0 [file]', false, - cmd => cmd - .positional('file', { type: 'string' }), + .help(false) + .command('$0 [file]', false, + cmd => cmd + .positional('file', { type: 'string' }), async args => { this.handleMainCommand({ file: args.file,