feat: Add debug cmd flag

Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
This commit is contained in:
Tim Hårek Andreassen 2024-10-04 23:19:20 +02:00
parent a8689a100b
commit cb00a14019
No known key found for this signature in database
GPG key ID: E59C7734F0E10EB5
2 changed files with 2 additions and 0 deletions

View file

@ -8,4 +8,5 @@ const (
UTC = "utc"
WEB = "web"
ONE_LINE = "oneline"
DEBUG = "debug"
)

View file

@ -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")