Skip to content

Commit

Permalink
add comments for --reset-checks-bundle flag
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen committed Jun 24, 2024
1 parent 01f901c commit 8995644
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/commands/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions pkg/flag/misconf_flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 8995644

Please sign in to comment.