Pass opt parser class as arg