handle capital
Docker-DCO-1.1-Signed-off-by: Victor Vieux <victor.vieux@docker.com> (github: vieux)
This commit is contained in:
parent
6c4652a766
commit
572ce1c6a9
1 changed files with 1 additions and 1 deletions
|
@ -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:]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue