'Converts all options given on the command line to config file syntax'

def _generate_job_config(self):

    extra = []
    if self.command_line_options.extra_cartesian_config:
        extra += self.command_line_options.extra_cartesian_config
    if self.command_line_options.koji_tag:
        extra.append(('koji_tag    =    %s' % self.command_line_options.koji_tag))
    if self.command_line_options.koji_pkg:
        koji_pkgs = []
        for koji_pkg in self.command_line_options.koji_pkg:
            koji_pkgs.append(('"%s"' % koji_pkg))
        extra.append(('koji_pkgs    =    [%s]' % ',    '.join(koji_pkgs)))
    extra = [("'%s'" % e) for e in extra]
    return ('[%s]' % ',    '.join(extra))
