remove ansi from options

This commit is contained in:
David Ventura
2024-05-05 16:43:31 +02:00
parent b59c77729c
commit f4b7b1a463
2 changed files with 2 additions and 5 deletions
+2 -4
View File
@@ -16,10 +16,9 @@ yargs(hideBin(process.argv))
"start http server",
(yargs) => {
return yargs
.option("ansi", { default: false })
.option("audio", { describe: "Also stream audio from camera", default: true })
.option("color", { describe: "Use color in logs", default: undefined })
.boolean(["ansi", "audio", "color"])
.boolean(["audio", "color"])
.option("log_level", { describe: "Set log level", default: "info" })
.option("discovery_ip", { describe: "Camera discovery IP address", default: "192.168.1.255" })
.option("attempt_to_fix_packet_loss", { default: false })
@@ -41,9 +40,8 @@ yargs(hideBin(process.argv))
"configure a camera",
(yargs) => {
return yargs
.option("ansi", { default: false })
.option("color", { describe: "Use color in logs", default: undefined })
.boolean(["ansi", "color"])
.boolean(["color"])
.option("log_level", { describe: "Set log level", default: "info" })
.option("discovery_ip", { describe: "Camera discovery IP address", default: "192.168.1.255" })
.option("attempt_to_fix_packet_loss", { default: false })
-1
View File
@@ -1,5 +1,4 @@
export type opt = {
ansi: boolean;
discovery_ip: string;
attempt_to_fix_packet_loss: boolean;
};