bin/ar2gostruct in ar2gostruct-0.2.1 vs bin/ar2gostruct in ar2gostruct-0.2.2
- old
+ new
@@ -27,12 +27,17 @@
opt.on("--model-dir dir",
"Model files stored in dir rather than app/models") do |dir|
ENV["model_dir"] = dir.to_s
end
+ opt.on("--package pkgname",
+ "package name so structs can be imported") do |p|
+ ENV["package"] = p.to_s
+ end
+
opt.on("--require r", "require path") do |r|
ENV["require_path"] = r.to_s
end
opt.parse!(ARGV)
end
Ar2gostruct.load
-Ar2gostruct.convert!
\ No newline at end of file
+Ar2gostruct.convert!