diff --git a/pkg/commands/app.go b/pkg/commands/app.go index d3c74d0c39af..e575186c9b04 100644 --- a/pkg/commands/app.go +++ b/pkg/commands/app.go @@ -1243,7 +1243,7 @@ func showVersion(cacheDir, outputFormat string, w io.Writer) error { func validateArgs(cmd *cobra.Command, args []string) error { // '--clear-cache' (removed), '--download-db-only', '--download-java-db-only', '--reset' (removed), - // '--reset-checks-bundle' and '--generate-default-config' don't conduct the subsequent scanning + // '--reset-checks-bundle' (removed) and '--generate-default-config' don't conduct the subsequent scanning if viper.GetBool(flag.ClearCacheFlag.ConfigName) || viper.GetBool(flag.DownloadDBOnlyFlag.ConfigName) || viper.GetBool(flag.ResetFlag.ConfigName) || viper.GetBool(flag.GenerateDefaultConfigFlag.ConfigName) || viper.GetBool(flag.DownloadJavaDBOnlyFlag.ConfigName) || viper.GetBool(flag.ResetChecksBundleFlag.ConfigName) { diff --git a/pkg/flag/misconf_flags.go b/pkg/flag/misconf_flags.go index a058d4a859ae..fc7505fec393 100644 --- a/pkg/flag/misconf_flags.go +++ b/pkg/flag/misconf_flags.go @@ -15,6 +15,7 @@ import ( // config-policy: "custom-policy/policy" // policy-namespaces: "user" var ( + // Deprecated ResetChecksBundleFlag = Flag[bool]{ Name: "reset-checks-bundle", ConfigName: "misconfiguration.reset-checks-bundle",