Permalink
Browse files

Show usage description if no code is passed (closes #4447) [murphy@cY…

…cnus.de]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4075 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 31199a9 commit e7db36bd8e4b1ce47f6246a52690861bd4547a4b @dhh dhh committed Mar 28, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/commands/runner.rb
@@ -24,4 +24,4 @@
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)

0 comments on commit e7db36b

Please sign in to comment.