Initial implementation of the command-line interface.