Skip to content

Commit

Permalink
improve feedback when no rolls are given
Browse files Browse the repository at this point in the history
  • Loading branch information
mgumz committed Sep 25, 2016
1 parent 349d5c4 commit 3eb9e97
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ func main() {
return
}

if len(flag.Args()) == 0 {
fmt.Println("no rolls given, no lookup possible.\n")
flag.Usage()
return
}
doLookupRolls(flag.Args(), lines, printer)
}

Expand Down

0 comments on commit 3eb9e97

Please sign in to comment.