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,