提交 39ebd6eb 编写于 作者: J Jeremy Kemper

rails runner loads environment after parsing command-line options

上级 6f247347
......@@ -58,8 +58,6 @@
require 'rails/commands/plugin'
when 'runner'
require 'rails/commands/runner'
require ENV_PATH
when '--help', '-h'
puts HELP_TEXT
......
......@@ -35,6 +35,8 @@
ENV["RAILS_ENV"] = options[:environment]
require ENV_PATH
begin
if code_or_file.nil?
$stderr.puts "Run '#{$0} -h' for help."
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册