Browse Source

Fix newInvalidArgsError

DarthSim 3 weeks ago
parent
commit
7c4411fe45
1 changed files with 1 additions and 1 deletions
  1. 1 1
      options/errors.go

+ 1 - 1
options/errors.go

@@ -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)
 }