From a9f34eaa0f07a56a2de674cb5ec604a722e67310 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 6 Oct 2005 02:05:36 +0000 Subject: 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 --- railties/lib/commands.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'railties/lib/commands.rb') 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 [OPTIONS] + +Examples: + ./script/run generate controller Admin + ./script/run process reaper + +USAGE puts "Choose: #{commands.join(", ")}" end \ No newline at end of file -- cgit v1.2.3