Set base command flag data
This commit is contained in:
parent
df25af809c
commit
1b8246c28f
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user