Browse Source

Fix `Invalid zoom value error message` for the second argument

DarthSim 4 months ago
parent
commit
2145a66174
1 changed files with 1 additions and 1 deletions
  1. 1 1
      options/processing_options.go

+ 1 - 1
options/processing_options.go

@@ -410,7 +410,7 @@ func applyZoomOption(po *ProcessingOptions, args []string) error {
 		if z, err := strconv.ParseFloat(args[1], 64); err == nil && z > 0 {
 			po.ZoomHeight = z
 		} else {
-			return newOptionArgumentError("Invalid zoom value: %s", args[0])
+			return newOptionArgumentError("Invalid zoom value: %s", args[1])
 		}
 	}