Thor Ruby gem is a great tool to quickly build a CLI (Command-line interface) app.