add slow-startup flag

This commit is contained in:
David Ventura
2024-05-01 11:56:17 +02:00
parent c4007961c7
commit a547546055
3 changed files with 28 additions and 13 deletions
+4 -2
View File
@@ -13,8 +13,9 @@ yargs(hideBin(process.argv))
return yargs
.option("debug", { describe: "Log debug messages", default: false })
.option("ansi", { default: false })
.option("slow_startup", { default: false })
.option("audio", { describe: "Also stream audio from camera", default: true })
.boolean(["debug", "ansi", "audio"])
.boolean(["debug", "ansi", "audio", "slow_startup"])
.option("discovery_ip", { describe: "Camera discovery IP address", default: "192.168.1.255" })
.option("attempt_to_fix_packet_loss", { default: false })
.option("port", { describe: "HTTP Port to listen on", default: 5000 })
@@ -33,7 +34,8 @@ yargs(hideBin(process.argv))
return yargs
.option("debug", { describe: "Log debug messages", default: false })
.option("ansi", { default: false })
.boolean(["debug", "ansi"])
.option("slow_startup", { default: false })
.boolean(["debug", "ansi", "slow_startup"])
.option("discovery_ip", { describe: "Camera discovery IP address", default: "192.168.1.255" })
.option("attempt_to_fix_packet_loss", { default: false })
.option("ssid", { describe: "Wifi network for the camera to connect to" })