summaryrefslogtreecommitdiff
path: root/parse.go
diff options
context:
space:
mode:
Diffstat (limited to 'parse.go')
-rw-r--r--parse.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.go b/parse.go
index ece7dde..8ef1400 100644
--- a/parse.go
+++ b/parse.go
@@ -618,7 +618,7 @@ func (p *Parser) process(args []string) error {
// must use explicit for loop, not range, because we manipulate i inside the loop
for i := 0; i < len(args); i++ {
arg := args[i]
- if arg == "--" {
+ if arg == "--" && !allpositional {
allpositional = true
continue
}