Implement command line interface.