handle capital

Docker-DCO-1.1-Signed-off-by: Victor Vieux <victor.vieux@docker.com> (github: vieux)
This commit is contained in:
Victor Vieux 2014-03-07 23:39:03 +00:00
parent 6c4652a766
commit 572ce1c6a9

View file

@ -290,7 +290,7 @@ type flagSlice []string
func (p flagSlice) Len() int { return len(p) } func (p flagSlice) Len() int { return len(p) }
func (p flagSlice) Less(i, j int) bool { 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] == '-' { if pi[0] == '-' {
pi = pi[1:] pi = pi[1:]
} }