Skip to content

Commit

Permalink
Allow zip codes and num of days for use
Browse files Browse the repository at this point in the history
  • Loading branch information
JHoloboski authored and schachmat committed May 19, 2015
1 parent 66f2ab2 commit 7621ec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion we.go
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ func main() {
params = append(params, "key="+config.APIKey)

for _, arg := range os.Args[1:] {
if v, err := strconv.Atoi(arg); err == nil {
if v, err := strconv.Atoi(arg); err == nil && len(arg) == 1 {
numdays = v
} else {
config.City = arg
Expand Down

0 comments on commit 7621ec3

Please sign in to comment.