electron/spec/fixtures/api/command-line/main.js

14 lines
292 B
JavaScript
Raw Normal View History

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()
})