diff --git a/tmpl/tmpl.go b/tmpl/tmpl.go index d205470..5e48822 100644 --- a/tmpl/tmpl.go +++ b/tmpl/tmpl.go @@ -25,8 +25,8 @@ Run(args []string) int { status = 0 delim = '\n' arg0 = args[0] - - if len(args[1]) != len(args)-2 { + + if len(args)<3 || len(args[1]) != len(args)-2 { usage() }