mirror of
https://github.com/spf13/cobra
synced 2025-05-06 05:17:21 +00:00
Merge remote-tracking branch 'spf13/master' into zsh-completion
This commit is contained in:
commit
4c6a1bc7fc
3 changed files with 7 additions and 4 deletions
|
@ -26,11 +26,11 @@ version: 2
|
|||
jobs:
|
||||
go-current:
|
||||
docker:
|
||||
- image: circleci/golang:1.8.3
|
||||
- image: circleci/golang:1.10.0
|
||||
<<: *base
|
||||
go-previous:
|
||||
docker:
|
||||
- image: circleci/golang:1.7.6
|
||||
- image: circleci/golang:1.9.4
|
||||
<<: *base
|
||||
go-latest:
|
||||
docker:
|
||||
|
|
|
@ -2,8 +2,8 @@ language: go
|
|||
|
||||
matrix:
|
||||
include:
|
||||
- go: 1.7.6
|
||||
- go: 1.8.3
|
||||
- go: 1.9.4
|
||||
- go: 1.10.0
|
||||
- go: tip
|
||||
allow_failures:
|
||||
- go: tip
|
||||
|
|
|
@ -475,6 +475,9 @@ Loop:
|
|||
s := args[0]
|
||||
args = args[1:]
|
||||
switch {
|
||||
case s == "--":
|
||||
// "--" terminates the flags
|
||||
break Loop
|
||||
case strings.HasPrefix(s, "--") && !strings.Contains(s, "=") && !hasNoOptDefVal(s[2:], flags):
|
||||
// If '--flag arg' then
|
||||
// delete arg from args.
|
||||
|
|
Loading…
Add table
Reference in a new issue