diff --git a/we.go b/we.go index 05b6e52..fe823b8 100644 --- a/we.go +++ b/we.go @@ -534,6 +534,9 @@ func main() { fmt.Fprintln(stdout, val) } + if numdays == 0 { + return + } if r.Data.Weather == nil { log.Fatal("No detailed weather forecast available.") }