Skip to content

Commit

Permalink
singularize flag name
Browse files Browse the repository at this point in the history
  • Loading branch information
jippi committed Feb 10, 2024
1 parent 45d4d50 commit 11633c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/validate/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ func Command() *cobra.Command {
RunE: runE,
}

cmd.Flags().SortFlags = false
cmd.Flags().StringSlice("exclude-prefix", []string{}, "Exclude keys with this prefix")
cmd.Flags().StringSlice("ignore-rules", []string{}, "Ignore specific validation rules")
cmd.Flags().StringSlice("exclude-prefix", []string{}, "Exclude KEY with this prefix")
cmd.Flags().StringSlice("ignore-rule", []string{}, "Ignore this validation rule (e.g. 'dir')")

shared.BoolWithInverse(cmd, "fix", true, "Guide the user to fix supported validation errors", "Do not guide the user to fix supported validation errors")

return cmd
Expand All @@ -40,7 +40,7 @@ func runE(cmd *cobra.Command, args []string) error {
//

fix := shared.BoolWithInverseValue(cmd.Flags(), "fix")
ignoreRules, _ := cmd.Flags().GetStringSlice("ignore-rules")
ignoreRules, _ := cmd.Flags().GetStringSlice("ignore-rule")

handlers := []render.Handler{}
handlers = append(handlers, render.ExcludeDisabledAssignments)
Expand Down

0 comments on commit 11633c5

Please sign in to comment.