Skip to content

Commit

Permalink
activate arg sooner
Browse files Browse the repository at this point in the history
  • Loading branch information
pyqlsa committed Jul 17, 2022
1 parent d17bf2e commit 2169b82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context.go
Expand Up @@ -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,
Expand Down

0 comments on commit 2169b82

Please sign in to comment.