Command line main menu interface boilerplate.