Skip to content

Commit

Permalink
Rename --analytics to --enable-analytics (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalsaha authored Mar 21, 2018
1 parent 7ea2220 commit 4c9a478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func NewRootCmd() *cobra.Command {
rootCmd.PersistentFlags().AddGoFlagSet(flag.CommandLine)
// ref: https://github.com/kubernetes/kubernetes/issues/17162#issuecomment-225596212
flag.CommandLine.Parse([]string{})
rootCmd.PersistentFlags().BoolVar(&util.EnableAnalytics, "analytics", util.EnableAnalytics, "Send analytical events to Google Analytics")
rootCmd.PersistentFlags().BoolVar(&util.EnableAnalytics, "enable-analytics", util.EnableAnalytics, "Send analytical events to Google Analytics")

rootCmd.AddCommand(v.NewCmdVersion())
stopCh := genericapiserver.SetupSignalHandler()
Expand Down

0 comments on commit 4c9a478

Please sign in to comment.