seattlerb/minitest — pull request #279 by zeroed (2013-05-01 08:41:42+00:00)
Title: exit code for #276

exit code for #276

Hi...

I hope this little fix is the expected behaviour.

Before:

```
$ ruby foo.rb -z
MiniTest::Unit::TestCase is now Minitest::Test. From foo.rb:13:in `

'

invalid option: -z

minitest options:
-h, --help Display this help.
-s, --seed SEED Sets random seed
-v, --verbose Verbose. Show progress processing files.
-p, --pride Pride. Show your testing pride!
-n, --name PATTERN Filter method names on pattern (e.g. /foo/)
/usr/local/lib/ruby/gems/2.0.0/gems/minitest-5.0.0/lib/minitest.rb:43:in `exit': no implicit conversion from nil to integer (TypeError)
from /usr/local/lib/ruby/gems/2.0.0/gems/minitest-5.0.0/lib/minitest.rb:43:in `block (2 levels) in autorun'
```

After:

```
$ ruby foo.rb -z
MiniTest::Unit::TestCase is now Minitest::Test. From foo.rb:13:in `

'

invalid option: -z

minitest options:
-h, --help Display this help.
-s, --seed SEED Sets random seed
-v, --verbose Verbose. Show progress processing files.
-p, --pride Pride. Show your testing pride!
-n, --name PATTERN Filter method names on pattern (e.g. /foo/)
```

I hope this helps.
`^_^` Yup.