def _extract_pic_pie(self, kwargs, arg):
    all_flags = (self.extra_args['c'] + self.extra_args['cpp'])
    if ((('-f' + arg.lower()) in all_flags) or (('-f' + arg.upper()) in all_flags)):
        mlog.warning("Use the '{}' kwarg instead of passing '{}' manually to {!r}".format(arg, ('-f' + arg), self.name))
        return True
    val = kwargs.get(arg, False)
    if (not isinstance(val, bool)):
        raise InvalidArguments('Argument {} to {!r} must be boolean'.format(arg, self.name))
    return val
def _extract_pic_pie(self, kwargs, arg):
    all_flags = (self.extra_args['c'] + self.extra_args['cpp'])
    if ((('-f' + arg.lower()) in all_flags) or (('-f' + arg.upper()) in all_flags)):
        mlog.warning("Use the '{}' kwarg instead of passing '{}' manually to {!r}".format(arg, ('-f' + arg), self.name))
        return True
    val = kwargs.get(arg, False)
    if (not isinstance(val, bool)):
        raise InvalidArguments('Argument {} to {!r} must be boolean'.format(arg, self.name))
    return val