Clive provides a DSL for building command line interfaces. It allows you to define commands and options, which can also take arguments, and then runs the correct stuff!
Joshua Hawxwell
gem "clive", "~> 1.2.0"