mirror of
https://github.com/clearlinux/docker.git
synced 2026-08-21 21:35:51 +00:00
handle capital
Docker-DCO-1.1-Signed-off-by: Victor Vieux <victor.vieux@docker.com> (github: vieux)
This commit is contained in:
+1
-1
@@ -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:]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user