From 52e3c59f824b10a504f2f34fc9e66a0e82e8395f Mon Sep 17 00:00:00 2001 From: Andrea Spacca Date: Fri, 8 Dec 2023 20:10:53 +0900 Subject: [PATCH] Update cmd/benchmark.go Co-authored-by: Jaime Soriano Pastor --- cmd/benchmark.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/benchmark.go b/cmd/benchmark.go index b796009be..d5232b489 100644 --- a/cmd/benchmark.go +++ b/cmd/benchmark.go @@ -429,7 +429,7 @@ func streamCommandAction(cmd *cobra.Command, args []string) error { benchName, err := cmd.Flags().GetString(cobraext.BenchNameFlagName) if err != nil { - benchName = "" + return cobraext.FlagParsingError(err, cobraext.VariantFlagName) } backFill, err := cmd.Flags().GetDuration(cobraext.BenchStreamBackFillFlagName)