jruby/jruby — pull request #2036 by chrisseaton (2014-10-10 03:47:37+00:00)
Title: Demonstrate pedantic option

This is what I am talking about for #2020.

I've added an option `-Xcompliance.strict`. When this option is enabled I've slightly changed argument processing so it matches what RubySpec thinks it should be, as a simple example to get started with. Specifically, we don't process arguments like `--help` in `RUBYOPT`, and we add a new `--yydebug` option (just our `--dump yydebug` by a different name).

I then run my Truffle specs with this option enabled. This gets Truffle to pass 18 more expectations, or around 0.6% of the RubySpec total for language. Every little helps!

Maybe there are more failing language specs in JRuby where this would allow us to show we pass the specs, but still keep our preferred behaviour.