Optimized options parsing (from https://github.com/jaewoo/spork-minitest/blob/master/lib/spork/test_framework/minitest.rb)