From 3eb9e9701a10ef6fecf34fbdf1f8ccc8ae0bca11 Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Sun, 25 Sep 2016 09:11:21 +0200 Subject: [PATCH] improve feedback when no rolls are given --- main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.go b/main.go index 45df67b..e60e949 100644 --- a/main.go +++ b/main.go @@ -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) }