Hide profiling options from help

This commit is contained in:
Jonas Köritz 2019-09-03 12:48:47 +02:00
parent ce0a817cb9
commit 6451deea33

View file

@ -97,6 +97,9 @@ func main() {
rootCmd.PersistentFlags().StringVarP(&cpuprofile, "cpuprofile", "c", "", "Profile CPU usage") rootCmd.PersistentFlags().StringVarP(&cpuprofile, "cpuprofile", "c", "", "Profile CPU usage")
rootCmd.PersistentFlags().StringVarP(&memoryprofile, "memoryprofile", "m", "", "Profile memory usage") rootCmd.PersistentFlags().StringVarP(&memoryprofile, "memoryprofile", "m", "", "Profile memory usage")
rootCmd.PersistentFlags().MarkHidden("cpuprofile")
rootCmd.PersistentFlags().MarkHidden("memoryprofile")
var ls = &cobra.Command{ var ls = &cobra.Command{
Use: "ls [Cameras IP Address]", Use: "ls [Cameras IP Address]",
Short: "List files stored on the cameras SD-Card", Short: "List files stored on the cameras SD-Card",