From 11b8bfd57ccfadb43f8d89dd85e6446d8ff7c1c3 Mon Sep 17 00:00:00 2001 From: Enrico Stahn Date: Tue, 20 Feb 2018 10:07:08 +1100 Subject: [PATCH] Remove dev gunk --- cmd/root.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 2873570..50aa520 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -55,15 +55,8 @@ func Execute() { func init() { cobra.OnInitialize(initConfig, initLogger) - // Here you will define your flags and configuration settings. - // Cobra supports persistent flags, which, if defined here, - // will be global for your application. RootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.php-fpm_exporter.yaml)") RootCmd.PersistentFlags().StringVar(&logLevel, "log.level", "info", "Only log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal]") - - // Cobra also supports local flags, which will only run - // when this action is called directly. - RootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") } // initConfig reads in config file and ENV variables if set.