aboutsummaryrefslogtreecommitdiffstats
path: root/railties/bin
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2009-06-28 13:16:14 +0200
committerJosé Valim <jose.valim@gmail.com>2009-06-28 13:16:14 +0200
commit1ca51df0001a750fafb0da70e4560c1ec439236c (patch)
tree677de24572e4d698149694145f14dfd5438fea56 /railties/bin
parent4f3e44fa03ab8fc47f75fa710b28c72b9b2328b9 (diff)
downloadrails-1ca51df0001a750fafb0da70e4560c1ec439236c.tar.gz
rails-1ca51df0001a750fafb0da70e4560c1ec439236c.tar.bz2
rails-1ca51df0001a750fafb0da70e4560c1ec439236c.zip
Added migration and session_migration generator.
Diffstat (limited to 'railties/bin')
-rwxr-xr-xrailties/bin/gen3
1 files changed, 1 insertions, 2 deletions
diff --git a/railties/bin/gen b/railties/bin/gen
index a6363edd54..9f105d2e19 100755
--- a/railties/bin/gen
+++ b/railties/bin/gen
@@ -26,8 +26,6 @@ if ARGV.size == 0
puts "Others: #{others.join(', ')}." unless others.empty?
exit
-elsif ARGV.size == 1
- ARGV << "--help"
end
Rails::Generators.builtin.each do |group, name|
@@ -37,6 +35,7 @@ end
name = ARGV.shift
if klass = Rails::Generators.find_by_namespace(name, "rails")
+ ARGV << "--help" if klass.arguments.any? { |a| a.required? } && ARGV.empty?
klass.start
else
puts "Could not find generator #{name}."