aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/generator
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/generator')
-rw-r--r--railties/lib/generator/generators/app.thor7
1 files changed, 7 insertions, 0 deletions
diff --git a/railties/lib/generator/generators/app.thor b/railties/lib/generator/generators/app.thor
index c433ca21c0..84f0504519 100644
--- a/railties/lib/generator/generators/app.thor
+++ b/railties/lib/generator/generators/app.thor
@@ -37,6 +37,13 @@ module Rails::Generators
class_option :no_prototype, :type => :boolean, :aliases => "-P", :default => false,
:desc => "Do not generate Prototype files"
+ # Add Rails options
+ class_option :version, :type => :boolean, :aliases => "-v", :group => :rails,
+ :desc => "Show Rails version number and quit"
+
+ class_option :help, :type => :boolean, :aliases => "-h", :group => :rails,
+ :desc => "Show this help message and quit"
+
def create_root
self.root = File.expand_path(app_path, root)
empty_directory '.'