From 2169b829ac6b9ca50c439f5d77da4b2dd9d7773f Mon Sep 17 00:00:00 2001 From: pyqlsa <26353308+pyqlsa@users.noreply.github.com> Date: Sun, 17 Jul 2022 12:38:07 -0700 Subject: [PATCH] activate arg sooner --- context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context.go b/context.go index baea3d4..b5c6e6d 100644 --- a/context.go +++ b/context.go @@ -439,11 +439,11 @@ func (c *Context) trace(node *Node) (err error) { // nolint: gocyclo c.endParsing() } + arg.Active = true err := arg.Parse(c.scan, c.getValue(arg)) if err != nil { return err } - arg.Active = true c.Path = append(c.Path, &Path{ Parent: node, Positional: arg,