MVCLI
MVCLI is an first-class application framework for building command line applications.
If you are familiar with other request-based MVC frameworks like Ruby on Rails, then you will feel right at home with mvcli.
For an example of an application that uses this, see rumm