Skip to content

Commit

Permalink
Merge pull request #14 from rajatjindal/issue-11
Browse files Browse the repository at this point in the history
use PersistentFlags
  • Loading branch information
mhausenblas authored Jul 1, 2020
2 parents b5eb9f0 + 979677c commit b9ff94c
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 b9ff94c

Please sign in to comment.