From ee26b8aa5c05096552c154d00bb1dabd0d642d0a Mon Sep 17 00:00:00 2001 From: rsteube Date: Tue, 24 Jan 2023 23:24:53 +0100 Subject: [PATCH] traverse: parsed args should be based on inArgs --- traverse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/traverse.go b/traverse.go index a2f87e6ad..a2ae58e15 100644 --- a/traverse.go +++ b/traverse.go @@ -101,7 +101,7 @@ loop: } } - toParse := context.Args + toParse := inArgs if inFlag != nil && inFlag.Consumes("") { logger.Printf("removing arg %#v since it is a flag missing its argument\n", toParse[len(toParse)-1]) toParse = toParse[:len(toParse)-1] // TODO nargs support