lib/rails/commands/runner.rb in railties-3.1.12 vs lib/rails/commands/runner.rb in railties-3.2.0.rc1
- old
+ new
@@ -2,9 +2,13 @@
require 'rbconfig'
options = { :environment => (ENV['RAILS_ENV'] || "development").dup }
code_or_file = nil
+if ARGV.first.nil?
+ ARGV.push "-h"
+end
+
ARGV.clone.options do |opts|
script_name = File.basename($0)
opts.banner = "Usage: runner [options] ('Some.ruby(code)' or a filename)"
opts.separator ""