Fix newInvalidArgsError

This commit is contained in:
DarthSim
2025-09-18 19:54:31 +03:00
parent f8133cd0b1
commit 7c4411fe45

View File

@@ -80,5 +80,5 @@ func newInvalidArgsError(name string, args []string, expected ...string) error {
msg += " (expected " + strings.Join(expected, ", ") + ")"
}
return newOptionArgumentError(msg, name, args, expected[0])
return newOptionArgumentError(msg, name, args)
}