script/runner: what the...!?

What's wrong here? script/runner looks okay, but doesn't run as advertised. Check it out:

./script/runner --help Usage: ./script/runner [options] ('Some.ruby(code)' or a filename)

    -e, --environment=name Specifies the environment for the runner to operate under (test/development/production).                                      Default: development

    -h, --help Show this help message.

You can also use runner as a shebang line for your scripts like this:

I'm a little confused about the require 'test_case' and how that affects runner. Same thing happened to me all of a sudden a while back and my only resolution was to run it with RAILS_ENV=production script/ runner "SomeModel.run".

Thanks, Fredrik