From fd51ed596155b860db69f967f3357d21018a1f50 Mon Sep 17 00:00:00 2001 From: Adphi Date: Thu, 11 Jul 2024 14:10:07 +0200 Subject: [PATCH] cli: fix usage format when multiple env vars are set Signed-off-by: Adphi --- cli/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/command.go b/cli/command.go index dcf5136..5af71b7 100644 --- a/cli/command.go +++ b/cli/command.go @@ -129,7 +129,7 @@ func Command(obj Runnable, c *cobra.Command) *cobra.Command { if v == "" { continue } - usage += fmt.Sprintf("%s [$%s]", usage, v) + usage += fmt.Sprintf(" [$%s]", v) } defInt, err := strconv.Atoi(defValue) if err != nil {