Skip to content

Commit 265ddad

Browse files
committed
Use flags not persistent flags
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
1 parent 61cbf22 commit 265ddad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/config/config.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ func AddFlags(v *viper.Viper, command *cobra.Command, inits ...func(*flag.FlagSe
3535
for i := range inits {
3636
inits[i](flagSet)
3737
}
38-
command.PersistentFlags().AddGoFlagSet(flagSet)
38+
command.Flags().AddGoFlagSet(flagSet)
3939

4040
configureViper(v)
41-
v.BindPFlags(command.PersistentFlags())
41+
v.BindPFlags(command.Flags())
4242
return v, command
4343
}
4444

0 commit comments

Comments
 (0)