Skip to content

Commit

Permalink
Use local flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Widcket committed Mar 5, 2021
1 parent 4a12e1b commit f1ffecd
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 @@ -310,7 +310,7 @@ func shouldPrompt(cmd *cobra.Command, flag string) bool {
func shouldPromptWhenFlagless(cmd *cobra.Command, flag string) bool {
isSet := false

cmd.Flags().VisitAll(func(f *pflag.Flag) {
cmd.LocalFlags().VisitAll(func(f *pflag.Flag) {
if (f.Changed) {
isSet = true
}
Expand Down

0 comments on commit f1ffecd

Please sign in to comment.