Mercenary is a lightweight and flexible library for writing command-line applications in Ruby. It was developed as part of Jekyll.