rubygem-mercenary is a lightweight and flexible library for writing command-line apps in Ruby.