From 6451deea33f3948c58347d8cbdf5304dc4915946 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20K=C3=B6ritz?= Date: Tue, 3 Sep 2019 12:48:47 +0200 Subject: [PATCH] Hide profiling options from help --- actioncam.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/actioncam.go b/actioncam.go index 1012ae6..1ee2a51 100644 --- a/actioncam.go +++ b/actioncam.go @@ -97,6 +97,9 @@ func main() { rootCmd.PersistentFlags().StringVarP(&cpuprofile, "cpuprofile", "c", "", "Profile CPU usage") rootCmd.PersistentFlags().StringVarP(&memoryprofile, "memoryprofile", "m", "", "Profile memory usage") + rootCmd.PersistentFlags().MarkHidden("cpuprofile") + rootCmd.PersistentFlags().MarkHidden("memoryprofile") + var ls = &cobra.Command{ Use: "ls [Cameras IP Address]", Short: "List files stored on the cameras SD-Card",