diff options
author | José Valim <jose.valim@gmail.com> | 2009-06-17 12:38:27 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-06-19 16:11:53 +0200 |
commit | b6f826376add9cbbdfe75c1eb85394a2e6574c4c (patch) | |
tree | 49efc84502041bf7bfbed19d08c33b06691b65a8 /railties/lib/generator/generators | |
parent | 615527dcb030ce9ad14e3d12e42a63f745fd9337 (diff) | |
download | rails-b6f826376add9cbbdfe75c1eb85394a2e6574c4c.tar.gz rails-b6f826376add9cbbdfe75c1eb85394a2e6574c4c.tar.bz2 rails-b6f826376add9cbbdfe75c1eb85394a2e6574c4c.zip |
Added a couple more options to app generator.
Diffstat (limited to 'railties/lib/generator/generators')
-rw-r--r-- | railties/lib/generator/generators/app.thor | 7 |
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 '.' |