diff --git a/cmd/supervisor_options.go b/cmd/supervisor_options.go index f2462665..b7304092 100644 --- a/cmd/supervisor_options.go +++ b/cmd/supervisor_options.go @@ -45,6 +45,7 @@ Supervisor running on your Home Assistant system.`, "debug-block", "diagnostics", "content-trust", + "force-security", } { data, err := cmd.Flags().GetBool(value) if err == nil && cmd.Flags().Changed(value) { @@ -81,12 +82,14 @@ func init() { supervisorOptionsCmd.Flags().StringP("logging", "l", "", "Logging: debug|info|warning|error|critical") supervisorOptionsCmd.Flags().IntP("wait-boot", "w", 0, "Seconds to wait after boot") supervisorOptionsCmd.Flags().BoolP("content-trust", "", true, "Enable/Disable content-trust on the backend") + supervisorOptionsCmd.Flags().BoolP("force-security", "", false, "Enable/Disable force-security on the backend") supervisorOptionsCmd.Flags().BoolP("debug", "", false, "Enable debug mode") supervisorOptionsCmd.Flags().BoolP("debug-block", "", false, "Enable debug mode with blocking startup") supervisorOptionsCmd.Flags().BoolP("diagnostics", "", false, "Enable diagnostics mode") supervisorOptionsCmd.Flags().StringArrayP("repositories", "r", []string{}, "repositories to track, can be supplied multiple times") supervisorOptionsCmd.Flags().Lookup("content-trust").NoOptDefVal = "true" + supervisorOptionsCmd.Flags().Lookup("force-security").NoOptDefVal = "false" supervisorOptionsCmd.Flags().Lookup("debug").NoOptDefVal = "false" supervisorOptionsCmd.Flags().Lookup("debug-block").NoOptDefVal = "false" supervisorOptionsCmd.Flags().Lookup("diagnostics").NoOptDefVal = "false"