Skip to content

Commit

Permalink
Omit return value of SetAnnotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Widcket committed Jan 27, 2021
1 parent 811a9e2 commit ce25dc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ func shouldPrompt(cmd *cobra.Command, flag string) bool {
func prepareInteractivity(cmd *cobra.Command) {
if canPrompt(cmd) {
cmd.Flags().VisitAll(func(flag *pflag.Flag) {
cmd.Flags().SetAnnotation(flag.Name, cobra.BashCompOneRequiredFlag, []string{"false"})
_ = cmd.Flags().SetAnnotation(flag.Name, cobra.BashCompOneRequiredFlag, []string{"false"})
})
}
}

0 comments on commit ce25dc6

Please sign in to comment.