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

@ -26,7 +26,7 @@ Run(args []string) int {
delim = '\n' delim = '\n'
arg0 = args[0] arg0 = args[0]
if len(args[1]) != len(args)-2 { if len(args)<3 || len(args[1]) != len(args)-2 {
usage() usage()
} }