diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-10-06 02:05:36 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-10-06 02:05:36 +0000 |
commit | a9f34eaa0f07a56a2de674cb5ec604a722e67310 (patch) | |
tree | 330bac51ea5442db70b46acca89df997ef073604 /railties/lib/commands.rb | |
parent | eb54de9992dedfcc6b42613a06480af4d0783bf0 (diff) | |
download | rails-a9f34eaa0f07a56a2de674cb5ec604a722e67310.tar.gz rails-a9f34eaa0f07a56a2de674cb5ec604a722e67310.tar.bz2 rails-a9f34eaa0f07a56a2de674cb5ec604a722e67310.zip |
Backed out of script/run portal idea. Muscle memory too deep
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2469 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/commands.rb')
-rw-r--r-- | railties/lib/commands.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/railties/lib/commands.rb b/railties/lib/commands.rb index cf7716fc83..841e98a0dc 100644 --- a/railties/lib/commands.rb +++ b/railties/lib/commands.rb @@ -3,5 +3,15 @@ commands = Dir["#{File.dirname(__FILE__)}/commands/*.rb"].collect { |file_path| if commands.include?(ARGV.first) require "#{File.dirname(__FILE__)}/commands/#{ARGV.shift}" else + puts <<-USAGE +The 'run' provides a unified access point for all the default Rails' commands. + +Usage: ./script/run <command> [OPTIONS] + +Examples: + ./script/run generate controller Admin + ./script/run process reaper + +USAGE puts "Choose: #{commands.join(", ")}" end
\ No newline at end of file |