options = {} for option in config.cmd_opts.x: key, value = option.partition('=')[::2] options[key] = value