diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-28 01:47:16 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-28 01:47:16 +0000 |
commit | e7db36bd8e4b1ce47f6246a52690861bd4547a4b (patch) | |
tree | 37539d2f8eb4ad8705a59cf4eb7db4e5c983da77 /railties/lib/commands/runner.rb | |
parent | 31199a9e4af79f5d609bc6446e40e5f4ac03bb61 (diff) | |
download | rails-e7db36bd8e4b1ce47f6246a52690861bd4547a4b.tar.gz rails-e7db36bd8e4b1ce47f6246a52690861bd4547a4b.tar.bz2 rails-e7db36bd8e4b1ce47f6246a52690861bd4547a4b.zip |
Show usage description if no code is passed (closes #4447) [murphy@cYcnus.de]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4075 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/commands/runner.rb')
-rw-r--r-- | railties/lib/commands/runner.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/commands/runner.rb b/railties/lib/commands/runner.rb index 27a2cf33d6..f4d70f1541 100644 --- a/railties/lib/commands/runner.rb +++ b/railties/lib/commands/runner.rb @@ -24,4 +24,4 @@ ENV["RAILS_ENV"] = options[:environment] RAILS_ENV.replace(options[:environment]) if defined?(RAILS_ENV) require RAILS_ROOT + '/config/environment' -eval(ARGV.first) +ARGV.empty? ? puts("Usage: runner 'code' [options]") : eval(ARGV.first) |