@staticmethod
    def param_to_arg_opts(param, generate_default):
        # load common options
        opts = {
                'help': param.help,
                'dest': param.name,
            }
        if hasattr(param, 'type'): opts['type'] = param.type
        if hasattr(param, 'choices'): opts['choices'] = param.choices

        if generate_default:
            opts['default'] = param.get_default()
        else:
            opts['default'] = argparse.SUPPRESS
        
        # load specific options at last so that
        # specific ones take higher priority in case a same
        # key occurs in both common part and loader_opts part
        specific_opts = param.loader_opts.get(CommandLineArgumentsLoader.OPT_KEY, dict())
        opts.update(specific_opts)
        if opts in 'flags': del(opts['flags'])
        _logger.debug('options to argparser: %s', opts)
        return opts
dataset/ETHPy150Open genzj/pybingwallpaper/src/config.py/CommandLineArgumentsLoader.param_to_arg_opts/swapped operands of `in`