From 57152253ccef6ecbbdd445de47fc2c83e19b7db7 Mon Sep 17 00:00:00 2001 From: Alec Thomas Date: Thu, 7 Jun 2018 20:56:51 +1000 Subject: [PATCH] Bug. --- context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context.go b/context.go index e809b86..449cc83 100644 --- a/context.go +++ b/context.go @@ -384,7 +384,7 @@ func checkMissingChildren(node *Node) error { // If we're missing any positionals and they're required, return an error. func checkMissingPositionals(positional int, values []*Value) error { // All the positionals are in. - if positional == len(values) { + if positional >= len(values) { return nil }