Skip to content

Commit

Permalink
Merge pull request #376 from civo/fix/backup-delete-args
Browse files Browse the repository at this point in the history
Set MinimumNArgs to 2 in case of backup deletion
  • Loading branch information
vishalanarase authored Mar 28, 2024
2 parents 5eddd8d + 4648352 commit bd79557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/database/database_backup_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var dbBackupDeleteCmd = &cobra.Command{
Aliases: []string{"rm", "remove", "destroy"},
Short: "Delete a manual database backup",
Example: "civo database backup delete <DATABASE-NAME/ID> <BACKUP-NAME/ID>",
Args: cobra.MinimumNArgs(1),
Args: cobra.MinimumNArgs(2),
Run: func(cmd *cobra.Command, args []string) {
utility.EnsureCurrentRegion()

Expand Down

0 comments on commit bd79557

Please sign in to comment.