We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0d4cef commit cc99410Copy full SHA for cc99410
message.go
@@ -61,13 +61,12 @@ const (
61
// If the flag is defined in RFC 3501, it returns the flag with the case of the
62
// RFC. Otherwise, it returns the lowercase version of the flag.
63
func CanonicalFlag(flag string) string {
64
- flag = strings.ToLower(flag)
65
for _, f := range flags {
66
- if strings.ToLower(f) == flag {
+ if strings.EqualFold(f, flag) {
67
return f
68
}
69
70
- return flag
+ return strings.ToLower(flag)
71
72
73
func ParseParamList(fields []interface{}) (map[string]string, error) {
0 commit comments