From e7db36bd8e4b1ce47f6246a52690861bd4547a4b Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 28 Mar 2006 01:47:16 +0000 Subject: 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 --- railties/lib/commands/runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/lib/commands') 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) -- cgit v1.2.3