From 539175e63919c55c083a0bff3f59ced050bdf6f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCr=20Kesim?= Date: Tue, 28 Jul 2015 10:45:44 +0200 Subject: [PATCH] -h handled --- dict.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dict.go b/dict.go index 5197f6d..f1d3a01 100644 --- a/dict.go +++ b/dict.go @@ -17,7 +17,7 @@ const ( ) func main() { - if len(os.Args) < 2 { + if len(os.Args) < 2 || os.Args[1][0] == '-' { println("usage:", os.Args[0], "word [{de|es|fr|en...}{de|es|fr|en|...}]") return }