From cd25d8730368d609300dc4f056be886705263e0c Mon Sep 17 00:00:00 2001 From: Sebastien Le Digabel Date: Tue, 18 Jul 2023 20:30:34 +0100 Subject: [PATCH] clearer code --- cmd/foreach/foreach.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/foreach/foreach.go b/cmd/foreach/foreach.go index 8196a2d..adbd40a 100644 --- a/cmd/foreach/foreach.go +++ b/cmd/foreach/foreach.go @@ -47,7 +47,7 @@ MAIN: helpFlag = true default: // we've parsed everything that could be parsed; this is now the command - if len(args) > 1 { + if len(args[i:]) > 0 { strippedArgs = args[i:] } break MAIN