Called the parse method for the command-line options from the main function.