Passing command line arguments to running electron app

Hey folks,

I got a request to my app to be able to send arguments from command line to running app, ie stretchly --reset-breaks

Is that even possible?

I have my app running as single instance only.

Here’s the request for more details:

You’ll be able to see command line arguments in your main process using Node’s process.argv

There are some npm packages that can help when dealing with arguments such as commander, minimist and meow

Thanks, my user was able to find the event ;]


Let’s see how that goes