Skip to content

Commit

Permalink
fix: mark name flag as required in UpdateKeyCmd
Browse files Browse the repository at this point in the history
  • Loading branch information
ldesauw authored and phsym committed Jan 8, 2025
1 parent bdc1385 commit a079326
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/okms/keys/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,9 @@ func newUpdateKeyCmd() *cobra.Command {
}

cmd.Flags().StringVar(&name, "name", "", "Update key with a new name")
if err := cmd.MarkFlagRequired("name"); err != nil {
panic(err)
}

return cmd
}
Expand Down

0 comments on commit a079326

Please sign in to comment.