golang flagset check to see if arg is available but has no value code example
Example: golang flagset check to see if arg is available but has no value
func isFlagPassed(name string) bool {
found := false
flag.Visit(func(f *flag.Flag) {
if f.Name == name {
found = true
}
})
return found
}