o
    c[                     @   sJ   d dl mZm Z  d dlmZmZ g dZdee deeef fddZdS )	    )GetoptErrorgetopt)DictList)zexec-prefix=zhome=zinstall-base=zinstall-data=zinstall-headers=zinstall-lib=zinstall-platlib=zinstall-purelib=zinstall-scripts=zprefix=zroot=userargsreturnc              	   C   sx   i }| D ]5}zt |gdtd\}}W n	 ty   Y qw |sq|d }|d dd dd}|d p4d	}|||< q|S )
zzParse provided arguments, returning an object that has the matched arguments.

    Any unknown arguments are ignored.
     )r   	shortoptslongoptsr      N-_   true)r   _optionsr   replace)r   resultarg
parsed_optr   optionname_from_parsedvalue_from_parsed r   O/opt/certbot/lib/python3.10/site-packages/pip/_internal/utils/distutils_args.pyparse_distutils_args   s   
r   N)r   r   typingr   r   r   strr   r   r   r   r   <module>   s    "