diff --git a/apps/cnspec/cmd/root.go b/apps/cnspec/cmd/root.go index 3304bb6a..23c6bbd5 100644 --- a/apps/cnspec/cmd/root.go +++ b/apps/cnspec/cmd/root.go @@ -97,7 +97,7 @@ func init() { rootCmd.PersistentFlags().String("api-proxy", "", "Set proxy for communications with Mondoo API") viper.BindPFlag("verbose", rootCmd.PersistentFlags().Lookup("verbose")) viper.BindPFlag("log-level", rootCmd.PersistentFlags().Lookup("log-level")) - viper.BindPFlag("api-proxy", rootCmd.PersistentFlags().Lookup("api-proxy")) + viper.BindPFlag("api_proxy", rootCmd.PersistentFlags().Lookup("api-proxy")) viper.BindEnv("features") config.Init(rootCmd)