CLI Development Simon Willison has some really interesting/useful advice for building command lines (mirror). I took a copy of his cookie cutter template and put it here