mirror of
https://github.com/docker/docs.git
synced 2026-03-27 22:38:54 +07:00
handle capital
Docker-DCO-1.1-Signed-off-by: Victor Vieux <victor.vieux@docker.com> (github: vieux)
This commit is contained in:
@@ -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