diff --git a/cmd/flags/flags.go b/cmd/flags/flags.go index 000c993..864b668 100644 --- a/cmd/flags/flags.go +++ b/cmd/flags/flags.go @@ -8,4 +8,5 @@ const ( UTC = "utc" WEB = "web" ONE_LINE = "oneline" + DEBUG = "debug" ) diff --git a/cmd/root.go b/cmd/root.go index 2486bdd..73a41ac 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -22,6 +22,7 @@ func Execute() { func init() { rootCmd.PersistentFlags().Bool(flags.JSON, false, "Result in JSON") + rootCmd.PersistentFlags().Bool(flags.DEBUG, false, "Display debug info") rootCmd.PersistentFlags().Bool(flags.UTC, false, "Result times in UTC") rootCmd.PersistentFlags().Bool(flags.WEB, false, "Open result in browser") rootCmd.PersistentFlags().Float64P(flags.LON, "x", 0, "Longitude coordinate")