Implemented the command line options.