bin/ar2gostruct in ar2gostruct-0.0.5 vs bin/ar2gostruct in ar2gostruct-0.1.0
- old
+ new
@@ -3,18 +3,22 @@
require 'optparse'
require 'ar2gostruct'
OptionParser.new do |opt|
- opt.banner = "Usage: annotate [options] [model_file]*"
+ opt.banner = "Usage: ar2gostruct [options]"
opt.on('-v', '--version',
"Show the current version of this gem") do
puts "ar2gostruct v#{Ar2gostruct.version}"; exit
end
opt.on('--orm orm', "Specify ORM. Currently supports only qbs") do |orm|
ENV['orm'] = orm.to_s
+ end
+
+ opt.on('--plural', "Pluralize struct name") do
+ ENV['plural'] = "true"
end
opt.on('--model-dir dir',
"Model files stored in dir rather than app/models") do |dir|
ENV['model_dir'] = dir.to_s
\ No newline at end of file