bin/ridgepole in ridgepole-0.5.2.beta2 vs bin/ridgepole in ridgepole-0.5.2.beta3

- old
+ new

@@ -112,20 +112,24 @@ if not mode or ([:apply, :export].include?(mode) and not config) or (options[:with_apply] and not config) puts opt.help exit 1 end + + if options[:enable_mysql_awesome] + if options[:enable_migration_comments] + raise "It is not possible to enable both `--enable-mysql-awesome` and `--enable-migration-comments`" + elsif options[:enable_mysql_unsigned] + raise "It is not possible to enable both `--enable-mysql-awesome` and `--enable-mysql-unsigned`" + end + end rescue => e $stderr.puts("[ERROR] #{e.message}") exit 1 end end begin - if options[:enable_migration_comments] and options[:enable_mysql_awesome] - raise "It is not possible to enable both `--enable-migration-comments` and `--enable-mysql-awesome`" - end - logger = Ridgepole::Logger.instance logger.set_debug(options[:debug]) client = Ridgepole::Client.new(Ridgepole::Config.load(config, env), options) if config