It seems that the ErrorCode ExtraParameter "a value was set to a long flag" is never being set.
The related function extraArg is referenced nowhere
|
func extraArg(o Option, value string) *Error { |
Testing setting a value to a long boolean flag returns the error "invalid value for bool" with the Invalid ErrorCode
|
return fmt.Errorf("invalid value for bool %s: %q", opt.Name(), value) |
It seems that the ErrorCode ExtraParameter "a value was set to a long flag" is never being set.
The related function extraArg is referenced nowhere
getopt/v2/error.go
Line 75 in 6173d3f
Testing setting a value to a long boolean flag returns the error "invalid value for bool" with the Invalid ErrorCode
getopt/bool.go
Line 21 in 6173d3f