diff --git a/src/main/index.ts b/src/main/index.ts index d5a07c4..3736cb8 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -433,11 +433,9 @@ app.on('ready', () => { let isCli = false const args = process.argv for (const arg of args) { - if (arg == 'help') { - isCli = true - } - if (arg.startsWith('-')) { + if (['-w', '-h', '-s', '-o', '-h', '--help', 'help'].indexOf(arg) >= 0) { isCli = true + break } }