Renamed parse_cmd to read_cmd_options