bin/ridgepole in ridgepole-0.6.0.beta vs bin/ridgepole in ridgepole-0.6.0.beta2
- old
+ new
@@ -66,10 +66,19 @@
raise "Cannot use `bulk-change` in `merge`" if options[:merge]
options[:bulk_change] = true
}
Ridgepole::DEFAULTS_LIMITS.keys.each do |column_type|
- opt.on('', "--default-#{column_type == :integer ? :int : column_type}-limit LIMIT", Integer) {|v|
+ case column_type
+ when :integer
+ option_column_type = :int
+ when :boolean
+ option_column_type = :bool
+ else
+ option_column_type = column_type
+ end
+
+ opt.on('', "--default-#{option_column_type}-limit LIMIT", Integer) {|v|
options[:"default_#{column_type}_limit"] = v
}
end
opt.on('', '--pre-query QUERY') {|v| options[:pre_query] = v }