Add -cgi option

Added the option and the cgi? to the opts object.