EDIT: Please, please, please read the two requirements listed at the bottom of this post before replying. People keep posting their new gems and li
Here's my favorite quick-and-dirty option parser:
case ARGV.join when /-h/ puts "help message" exit when /-opt1/ puts "running opt1" end
The options are regular expressions, so "-h" also would match "--help".
Readable, easy to remember, no external library, and minimal code.