Skip to content

Commit 2a2ce2b

Browse files
authored
Mark --analytics as deprecated (#26)
1 parent 59f6375 commit 2a2ce2b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,6 @@ If you have any questions, [file an issue](https://github.com/appscode/osm/issue
115115
---
116116

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

120120
---

cmds/root.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ func NewCmdOsm() *cobra.Command {
4242
rootCmd.PersistentFlags().String("osmconfig", home+"/.osm/config", "Path to osm config")
4343
rootCmd.PersistentFlags().BoolVar(&enableAnalytics, "enable-analytics", enableAnalytics, "Send usage events to Google Analytics")
4444

45+
rootCmd.PersistentFlags().BoolVar(&enableAnalytics, "analytics", enableAnalytics, "Send usage events to Google Analytics")
46+
rootCmd.PersistentFlags().MarkDeprecated("analytics", "use --enable-analytics")
47+
4548
rootCmd.AddCommand(cfgCmd.NewCmdConfig())
4649

4750
rootCmd.AddCommand(NewCmdListContainers())

0 commit comments

Comments
 (0)