Add Active member to Nodes and Values (#319)

This commit is contained in:
pyqlsa
2022-07-19 22:43:15 -07:00
committed by GitHub
parent f9bc630ef8
commit a05a0c20ba
4 changed files with 65 additions and 2 deletions
+2
View File
@@ -346,6 +346,7 @@ func (c *Context) endParsing() {
func (c *Context) trace(node *Node) (err error) { // nolint: gocyclo
positional := 0
node.Active = true
flags := []*Flag{}
flagNode := node
@@ -438,6 +439,7 @@ 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