mirror of https://github.com/electron/electron
14 lines
298 B
JavaScript
14 lines
298 B
JavaScript
const { app } = require('electron');
|
|
|
|
app.whenReady().then(() => {
|
|
const payload = {
|
|
hasSwitch: app.commandLine.hasSwitch('foobar'),
|
|
getSwitchValue: app.commandLine.getSwitchValue('foobar')
|
|
};
|
|
|
|
process.stdout.write(JSON.stringify(payload));
|
|
process.stdout.end();
|
|
|
|
app.quit();
|
|
});
|