UsageError typo on --animate-interval

This commit is contained in:
Joshua Rice 2024-01-25 09:40:04 +00:00 committed by imJoshuaRice
parent 1e5d8fa380
commit 90beb602c2
No known key found for this signature in database
GPG key ID: 198D19631B4772AA

View file

@ -221,9 +221,9 @@ func Run(ctx context.Context, ms *xmain.State) (err error) {
if outputPath != "-" {
outputPath = ms.AbsPath(outputPath)
if *animateIntervalFlag > 0 && !outputFormat.supportsAnimation() {
return xmain.UsageErrorf("-animate-interval can only be used when exporting to SVG or GIF.\nYou provided: %s", filepath.Ext(outputPath))
return xmain.UsageErrorf("--animate-interval can only be used when exporting to SVG or GIF.\nYou provided: %s", filepath.Ext(outputPath))
} else if *animateIntervalFlag <= 0 && outputFormat.requiresAnimationInterval() {
return xmain.UsageErrorf("-animate-interval must be greater than 0 for %s outputs.\nYou provided: %d", outputFormat, *animateIntervalFlag)
return xmain.UsageErrorf("--animate-interval must be greater than 0 for %s outputs.\nYou provided: %d", outputFormat, *animateIntervalFlag)
}
}