make deprecated flag optional (#157)

This commit is contained in:
Sandeep Rajan 2019-04-24 12:25:24 -04:00 committed by Chris O'Haver
parent 37f5d0dad4
commit aad513584d

View file

@ -38,8 +38,7 @@ corefile-tool migrate --from 1.2.2 --to 1.3.1 --corefile /path/to/Corefile --de
migrateCmd.MarkFlagRequired("to")
migrateCmd.Flags().String("corefile", "", "Required: The path where your Corefile is located.")
migrateCmd.MarkFlagRequired("corefile")
migrateCmd.Flags().Bool("deprecations", false, "Required: Specify whether you want to handle plugin deprecations. [True | False] ")
migrateCmd.MarkFlagRequired("deprecations")
migrateCmd.Flags().Bool("deprecations", false, "Specify whether you want to handle plugin deprecations. [True | False] ")
return migrateCmd
}