From 7a5217d4ae40cb08adf75cf56b9de3935ec946b6 Mon Sep 17 00:00:00 2001 From: Eamonn Mansour <47121388+eamansour@users.noreply.github.com> Date: Wed, 4 Sep 2024 15:30:27 +0100 Subject: [PATCH] Fix 'runs delete' not exiting with a cobra error when not specifying --name Signed-off-by: Eamonn Mansour <47121388+eamansour@users.noreply.github.com> --- pkg/cmd/runsDelete.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/runsDelete.go b/pkg/cmd/runsDelete.go index 38f588cc..9b2a3257 100644 --- a/pkg/cmd/runsDelete.go +++ b/pkg/cmd/runsDelete.go @@ -82,7 +82,7 @@ func (cmd *RunsDeleteCommand) createCobraCommand( }, } - runsDeleteCobraCmd.PersistentFlags().StringVar(&cmd.values.runName, "name", "", "the name of the test run we want to delete.") + runsDeleteCobraCmd.Flags().StringVar(&cmd.values.runName, "name", "", "the name of the test run we want to delete.") runsDeleteCobraCmd.MarkFlagRequired("name")