Skip to content

Commit

Permalink
Show usage description if no code is passed (closes rails#4447) [murp…
Browse files Browse the repository at this point in the history
…hy@cYcnus.de]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4075 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Mar 28, 2006
1 parent 31199a9 commit e7db36b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/commands/runner.rb
Expand Up @@ -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.