-h handled

This commit is contained in:
Özgür Kesim 2015-07-28 10:45:44 +02:00
parent 2d9c504241
commit 539175e639

View File

@ -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
}