update godeps to use latest pflag

This commit is contained in:
Michael Taufen
2018-04-12 17:12:43 -07:00
parent cb5f1ad9f7
commit b02f116172
18 changed files with 450 additions and 125 deletions

View File

@@ -98,4 +98,8 @@ func (f *FlagSet) AddGoFlagSet(newSet *goflag.FlagSet) {
newSet.VisitAll(func(goflag *goflag.Flag) {
f.AddGoFlag(goflag)
})
if f.addedGoFlagSets == nil {
f.addedGoFlagSets = make([]*goflag.FlagSet, 0)
}
f.addedGoFlagSets = append(f.addedGoFlagSets, newSet)
}