From 0076d97ecac5c1e14a1c76c0560502b652b2c5f0 Mon Sep 17 00:00:00 2001 From: magodo Date: Wed, 8 Nov 2023 16:22:34 +0800 Subject: [PATCH] Fix flag description telemetry issue --- flag.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flag.go b/flag.go index 222fb21..4fbc261 100644 --- a/flag.go +++ b/flag.go @@ -111,10 +111,10 @@ func (flag FlagSet) DescribeCLI(mode string) string { args = append(args, "--append=true") } if flag.flagProviderVersion != "" { - args = append(args, `-provider-version="%s"`, flag.flagProviderVersion) + args = append(args, fmt.Sprintf(`-provider-version="%s"`, flag.flagProviderVersion)) } if flag.flagProviderName != "" { - args = append(args, `-provider-name="%s"`, flag.flagProviderName) + args = append(args, fmt.Sprintf(`-provider-name="%s"`, flag.flagProviderName)) } if flag.flagBackendType != "" { args = append(args, "--backend-type="+flag.flagBackendType)