def has_option(name):
    try:
        sys.argv.remove('--%s' % name)
        return True
    except ValueError:
        pass
    # allow passing all cmd line options also as environment variables
    env_val = os.getenv(name.upper().replace('-', '_'), 'false').lower()
    if env_val == "true":
        return True
    return False
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/lxml-3.3.6/setupinfo.py/has_option/original