tmpl: fixed wrong arguments handling.
This commit is contained in:
parent
15f9e4db8c
commit
2756dab0b0
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue