feat: Add debug cmd flag
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
This commit is contained in:
parent
a8689a100b
commit
cb00a14019
2 changed files with 2 additions and 0 deletions
|
@ -8,4 +8,5 @@ const (
|
||||||
UTC = "utc"
|
UTC = "utc"
|
||||||
WEB = "web"
|
WEB = "web"
|
||||||
ONE_LINE = "oneline"
|
ONE_LINE = "oneline"
|
||||||
|
DEBUG = "debug"
|
||||||
)
|
)
|
||||||
|
|
|
@ -22,6 +22,7 @@ func Execute() {
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
rootCmd.PersistentFlags().Bool(flags.JSON, false, "Result in JSON")
|
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.UTC, false, "Result times in UTC")
|
||||||
rootCmd.PersistentFlags().Bool(flags.WEB, false, "Open result in browser")
|
rootCmd.PersistentFlags().Bool(flags.WEB, false, "Open result in browser")
|
||||||
rootCmd.PersistentFlags().Float64P(flags.LON, "x", 0, "Longitude coordinate")
|
rootCmd.PersistentFlags().Float64P(flags.LON, "x", 0, "Longitude coordinate")
|
||||||
|
|
Loading…
Reference in a new issue