Set base command flag data

This commit is contained in:
sophia 2022-05-16 14:31:23 -05:00
parent df25af809c
commit 1b8246c28f

View File

@ -488,8 +488,22 @@ func (c *baseCommand) Parse(
continue
}
c.flagData[f] = pf.Value()
// Set the flag values
switch f.LongName {
case "basis":
c.flagBasis = pf.Value().(string)
case "color":
c.flagColor = true
case "no-color":
c.flagColor = false
case "target":
c.flagTarget = pf.Value().(string)
case "remote":
c.flagRemote = true
case "no-remote":
c.flagRemote = false
}
}
return remainArgs, nil
}