Skip to content

Commit

Permalink
Fix option check
Browse files Browse the repository at this point in the history
  • Loading branch information
Genki Sugawara committed Jan 10, 2015
1 parent 316d9fc commit 7975197
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions bin/ridgepole
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,21 @@ ARGV.options do |opt|
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])

Expand Down

0 comments on commit 7975197

Please sign in to comment.