From 90beb602c28205fa6d28d78a2aa2f5a8e4bfae6b Mon Sep 17 00:00:00 2001 From: Joshua Rice <134961055+imJoshuaRice@users.noreply.github.com> Date: Thu, 25 Jan 2024 09:40:04 +0000 Subject: [PATCH] UsageError typo on --animate-interval --- d2cli/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/d2cli/main.go b/d2cli/main.go index 34ba5a7176..2b2c138d9b 100644 --- a/d2cli/main.go +++ b/d2cli/main.go @@ -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) } }