def _normalize_name(name):
    # type: (str) -> str
    """Make a name consistent regardless of source (environment or file)
    """
    name = name.lower().replace('_', '-')
    if name.startswith('--'):
        name = name[2:]  # only prefer long opts
    return name
Make a name consistent regardless of source (environment or file)
    
product/gradle-plugin/src/main/python/pip/_internal/configuration.py