Skip to content

Commit

Permalink
Mark --analytics as deprecated (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalsaha authored Apr 5, 2018
1 parent 59f6375 commit 2a2ce2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,6 @@ If you have any questions, [file an issue](https://github.com/appscode/osm/issue
---

**The osm binary collects anonymous usage statistics to help us learn how the software is being used and how we can improve it.
To disable stats collection, run the operator with the flag** `--analytics=false`.
To disable stats collection, run the operator with the flag** `--enable-analytics=false`.

---
3 changes: 3 additions & 0 deletions cmds/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ func NewCmdOsm() *cobra.Command {
rootCmd.PersistentFlags().String("osmconfig", home+"/.osm/config", "Path to osm config")
rootCmd.PersistentFlags().BoolVar(&enableAnalytics, "enable-analytics", enableAnalytics, "Send usage events to Google Analytics")

rootCmd.PersistentFlags().BoolVar(&enableAnalytics, "analytics", enableAnalytics, "Send usage events to Google Analytics")
rootCmd.PersistentFlags().MarkDeprecated("analytics", "use --enable-analytics")

rootCmd.AddCommand(cfgCmd.NewCmdConfig())

rootCmd.AddCommand(NewCmdListContainers())
Expand Down

0 comments on commit 2a2ce2b

Please sign in to comment.