Shorten --no-open-control option to --no-open

This commit is contained in:
Max Goodhart
2020-06-20 22:43:47 -07:00
parent 0c0f7d8c8d
commit 3c488cf379

View File

@@ -42,7 +42,7 @@ async function main() {
.option('password', {
describe: 'Web control server password',
})
.option('open-control', {
.option('open', {
describe: 'After launching, open the control website in a browser',
boolean: true,
default: true,
@@ -91,7 +91,7 @@ async function main() {
getInitialState,
onMessage,
}))
if (argv.openControl) {
if (argv.open) {
shell.openExternal(argv.webserver)
}
}