Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame contribute delete
277 Bytes
package expflag
type FlagSet []Flag
// Has returns true if the given flag name is in the set.
//
// It will panic if the flag name is not known.
func (f FlagSet) Has(flag Flag) bool {
for _, v := range f {
if v != flag {
continue
}
return true
}
return false
}