Merge remote-tracking branch 'spf13/master' into zsh-completion

This commit is contained in:
Haim Ashkenazi 2018-03-22 20:00:57 +02:00
commit 4c6a1bc7fc
3 changed files with 7 additions and 4 deletions

View file

@ -26,11 +26,11 @@ version: 2
jobs: jobs:
go-current: go-current:
docker: docker:
- image: circleci/golang:1.8.3 - image: circleci/golang:1.10.0
<<: *base <<: *base
go-previous: go-previous:
docker: docker:
- image: circleci/golang:1.7.6 - image: circleci/golang:1.9.4
<<: *base <<: *base
go-latest: go-latest:
docker: docker:

View file

@ -2,8 +2,8 @@ language: go
matrix: matrix:
include: include:
- go: 1.7.6 - go: 1.9.4
- go: 1.8.3 - go: 1.10.0
- go: tip - go: tip
allow_failures: allow_failures:
- go: tip - go: tip

View file

@ -475,6 +475,9 @@ Loop:
s := args[0] s := args[0]
args = args[1:] args = args[1:]
switch { switch {
case s == "--":
// "--" terminates the flags
break Loop
case strings.HasPrefix(s, "--") && !strings.Contains(s, "=") && !hasNoOptDefVal(s[2:], flags): case strings.HasPrefix(s, "--") && !strings.Contains(s, "=") && !hasNoOptDefVal(s[2:], flags):
// If '--flag arg' then // If '--flag arg' then
// delete arg from args. // delete arg from args.