Skip to content

Commit

Permalink
Fix 'runs delete' not exiting with a cobra error when not specifying …
Browse files Browse the repository at this point in the history
…--name

Signed-off-by: Eamonn Mansour <[email protected]>
  • Loading branch information
eamansour committed Sep 4, 2024
1 parent 3b421cd commit 7a5217d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/runsDelete.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 7a5217d

Please sign in to comment.