bin/ridgepole in ridgepole-0.5.1 vs bin/ridgepole in ridgepole-0.5.2.beta

- old
+ new

@@ -72,10 +72,11 @@ opt.on('', '--pre-query QUERY') {|v| options[:pre_query] = v } opt.on('', '--post-query QUERY') {|v| options[:post_query] = v } opt.on('-e', '--export') { set_mode[:export] } opt.on('', '--split') {|v| split = true } opt.on('', '--split-with-dir') {|v| split = :with_dir } + opt.on('', '--without-table-options') { options[:without_table_options] = true } opt.on('-d', '--diff DSL1 DSL2') {|diff_arg1| set_mode[:diff] diff_arg2 = ARGV.first if [diff_arg1, diff_arg2].any? {|i| i.nil? or i =~ /\A-/ } @@ -92,12 +93,14 @@ opt.on('-t', '--tables TABLES', Array) {|v| options[:tables] = v } opt.on('', '--ignore-tables TABLES', Array) {|v| options[:ignore_tables] = v.map {|i| Regexp.new(i) } } opt.on('', '--enable-mysql-unsigned') { options[:enable_mysql_unsigned] = true } opt.on('', '--enable-mysql-pkdump') { options[:enable_mysql_pkdump] = true } opt.on('', '--enable-foreigner') { options[:enable_foreigner] = true } - opt.on('', '--enable-migration-comments') { options[:migration_comments] = true } + opt.on('', '--enable-migration-comments') { options[:enable_migration_comments] = true } + opt.on('', '--enable-mysql-awesome') { options[:enable_mysql_awesome] = true } opt.on('', '--normalize-mysql-float') { options[:normalize_mysql_float] = true } + opt.on('-r' , '--require LIBS', Array) {|v| v.each {|i| require i } } opt.on('' , '--log-file LOG_FILE') {|v| options[:log_file] = v } opt.on('' , '--verbose') { Ridgepole::Logger.verbose = true } opt.on('' , '--debug') { options[:debug] = true } opt.on('-v', '--version') { @@ -116,9 +119,13 @@ 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