How to pass command line argument in electron


#1

Hai every one I just started electron
i have a doubt that how to pass command line argument in electron ,when i am using npm start to run the electron,
in node.js i am using:
node server.js one two=three four
in command prompt for :
var arguments = process.argv.slice(2);arguments .forEach(function(val,index, array) {
console.log(index + ': ’ + val);
});
it is working in nodejs but i need to know that how should it work in electron

Thanks:
Hussian Shaik


#2

Seems to be a duplicate of this other topic:

If so, please continue the conversation there.


#3

A post was merged into an existing topic: How to pass Command arguments in Electron?


#4