From a78182322b4d8c16aed48348c17bd6e610b9f9dc Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 28 Mar 2019 19:54:34 +0100 Subject: [PATCH] Made name flag required when rolling back a migration --- pkg/cmd/migrate.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/cmd/migrate.go b/pkg/cmd/migrate.go index f825ad0e2..94af0e54d 100644 --- a/pkg/cmd/migrate.go +++ b/pkg/cmd/migrate.go @@ -24,6 +24,7 @@ import ( func init() { migrateCmd.AddCommand(migrateListCmd) migrationRollbackCmd.Flags().StringVarP(&rollbackUntilFlag, "name", "n", "", "The id of the migration you want to roll back until.") + migrationRollbackCmd.MarkFlagRequired("name") migrateCmd.AddCommand(migrationRollbackCmd) rootCmd.AddCommand(migrateCmd) }