Added the cmdlineparsing method that allows for the command line options.