diff --git a/cmd/foreach/foreach.go b/cmd/foreach/foreach.go index adbd40a..2e3c6ba 100644 --- a/cmd/foreach/foreach.go +++ b/cmd/foreach/foreach.go @@ -47,9 +47,7 @@ MAIN: helpFlag = true default: // we've parsed everything that could be parsed; this is now the command - if len(args[i:]) > 0 { - strippedArgs = args[i:] - } + strippedArgs = append(strippedArgs, args[i:]...) break MAIN } }