I think SimpleConsole is what you are looking for:
It’s a tiny framework to get console applications developed quickly.
It might be overkill for scripts, but is pretty useful for some applications.
[...]
SimpleConsole has a controller and a view, the controller sets up variables for the view to
present. The view is optional, but is handy in the cases that you have a lot of ‘puts’
methods and you want to separate them from your logic.