summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-git@kesim.org>2015-07-28 10:45:44 +0200
committerÖzgür Kesim <oec-git@kesim.org>2015-07-28 10:45:44 +0200
commit539175e63919c55c083a0bff3f59ced050bdf6f1 (patch)
tree382f5a92ffb1f95f890998f263adeb6969c5e2f1
parent2d9c5042414a2280eaa5d0bad28a2865a9797499 (diff)
-h handled
-rw-r--r--dict.go2
1 files changed, 1 insertions, 1 deletions
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
}