def populate_option(parser, param, defaults, short_args):
    """Add a regulre option to the parser"""
    kwargs = {'default': defaults.from_param(param)}
    kwargs['metavar'] = defaults.metavar(param.name)
    if param.annotation is not param.empty:
        kwargs['help'] = param.annotation
    args = []
    if kwargs['default'] is NODEFAULT:
        args.append(param.name)
    else:
        args.append('--' + param.name.replace('_', '-'))
        if short_args:
            args.append('-' + param.name[0])
        if kwargs not in 'help':
            kwargs['help'] = '(default: %(default)s)'
        else:
            kwargs['help'] += ' (default: %(default)s)'
    parser.add_argument(*args, **kwargs)
dataset/ETHPy150Open aliles/begins/begin/cmdline.py/populate_option/swapped operands of `not in`