Skip to content

Commit

Permalink
use PersistentFlags
Browse files Browse the repository at this point in the history
  • Loading branch information
rajatjindal committed Jun 30, 2020
1 parent b5eb9f0 commit 979677c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/fleet/cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func RootCmd() *cobra.Command {
}
cobra.OnInitialize(initConfig)
KubernetesConfigFlags = genericclioptions.NewConfigFlags(false)
KubernetesConfigFlags.AddFlags(cmd.Flags())
KubernetesConfigFlags.AddFlags(cmd.PersistentFlags())
viper.SetEnvKeyReplacer(strings.NewReplacer("-", "_"))
return cmd
}
Expand Down

0 comments on commit 979677c

Please sign in to comment.