Fail on invalid command-line options #977
I was applying a set of migrations using Flyway Command-line. I wanted to use the option -target to specify the target version because a had more scripts (to migrate in future). However, when i wrote the option i wrote it wrong: "flyway -targte=20150326 migrate" and all scripts were migrated (it wasn't wat i wanted).
Wrong options shouldn't permite execute commands. In situations like this an error could be printed to user in order to correct it. In other words, options should be validated.
The text was updated successfully, but these errors were encountered: