tmpl: fixed wrong arguments handling.

This commit is contained in:
k1574 2020-12-07 09:27:39 +05:00
parent 15f9e4db8c
commit 2756dab0b0

View file

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