Adds a command-line interface.