qrush/m — pull request #10 by cldwalker (2012-04-07 20:02:52+00:00)
Title: added -h, -l, --version

Ended up using optparse. For usage, I put options before files but they could've gone after. Tweak as you like :)

I left alone invalid options since minitest does the same. It's trivial to add error handling i.e. rescue OptionParser::InvalidOption. Here's how a failed option looks:

```sh
$ m -z
/Users/me/code/fork/m/lib/m.rb:169:in `block in parse_options!': invalid option: -z (OptionParser::InvalidOption)
from /Users/me/code/fork/m/lib/m.rb:155:in `new'
from /Users/me/code/fork/m/lib/m.rb:155:in `parse_options!'
from /Users/me/code/fork/m/lib/m.rb:131:in `parse'
from /Users/me/code/fork/m/lib/m.rb:119:in `run'
from /Users/me/code/fork/m/lib/m.rb:105:in `run'
from bin/m:4:in `

'
```