From 572ce1c6a98fe61aa381f33b18c72854a310d9cd Mon Sep 17 00:00:00 2001 From: Victor Vieux Date: Fri, 7 Mar 2014 23:39:03 +0000 Subject: [PATCH] handle capital Docker-DCO-1.1-Signed-off-by: Victor Vieux (github: vieux) --- mflag/flag.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mflag/flag.go b/mflag/flag.go index 8b3d61e..f16f641 100644 --- a/mflag/flag.go +++ b/mflag/flag.go @@ -290,7 +290,7 @@ type flagSlice []string func (p flagSlice) Len() int { return len(p) } func (p flagSlice) Less(i, j int) bool { - pi, pj := p[i], p[j] + pi, pj := strings.ToLower(p[i]), strings.ToLower(p[j]) if pi[0] == '-' { pi = pi[1:] }