lib/railroady/options_struct.rb in railroady-1.2.0 vs lib/railroady/options_struct.rb in railroady-1.3.0

- old
+ new

@@ -25,10 +25,13 @@ :hide_types => false, :hide_public => false, :hide_protected => false, :hide_private => false, :plugins_models => false, + :engine_models => false, + :engine_controllers => false, + :include_concerns => false, :root => '', :show_belongs_to => false, :hide_through => false, :transitive => false, :verbose => false, @@ -107,10 +110,16 @@ self.modules = m end opts.on("-p", "--plugins-models", "Include plugins models") do |p| self.plugins_models = p end + opts.on("-z", "--engine-models", "Include engine models") do |em| + self.engine_models = em + end + opts.on("--include-concerns", "Include models in concerns subdirectory") do |c| + self.include_concerns = c + end opts.on("-t", "--transitive", "Include transitive associations", "(through inheritance)") do |t| self.transitive = t end opts.separator "" @@ -121,9 +130,12 @@ opts.on("--hide-protected", "Hide protected methods") do |h| self.hide_protected = h end opts.on("--hide-private", "Hide private methods") do |h| self.hide_private = h + end + opts.on("--engine-controllers", "Include engine controllers") do |ec| + self.engine_controllers = ec end opts.separator "" opts.separator "Other options:" opts.on("-h", "--help", "Show this message") do STDOUT.print "#{opts}\n"