diff options
| author | Alex Flint <[email protected]> | 2024-10-21 17:08:37 -0400 |
|---|---|---|
| committer | Alex Flint <[email protected]> | 2024-10-21 17:08:37 -0400 |
| commit | 51d9bef113c82cff90c5929d28934bb241e1b1df (patch) | |
| tree | b1920fb274548c15efa8c97d2b04cf64c9addcdd /parse.go | |
| parent | b218ad854d6817efffffa7f3d2cd3897498b28f6 (diff) | |
passing the no-more-options string "--" twice or more should pass the second and subsequent ones through as positionals
Diffstat (limited to 'parse.go')
| -rw-r--r-- | parse.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -615,7 +615,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 } |
