Your IP : 18.191.120.103


Current Path : /usr/lib/python3.6/site-packages/setuptools/command/__pycache__/
Upload File :
Current File : //usr/lib/python3.6/site-packages/setuptools/command/__pycache__/alias.cpython-36.pyc

3

9��fz	�@sPddlmZddlmZddlmZmZmZdd�ZGdd�de�Z	dd	�Z
d
S)�)�DistutilsOptionError)�map)�edit_config�option_base�config_filecCs8xdD]}||krt|�SqW|j�|gkr4t|�S|S)z4Quote an argument for later parsing by shlex.split()�"�'�\�#)rrr	r
)�repr�split)�arg�c�r�/usr/lib/python3.6/alias.py�shquotes
rc@sHeZdZdZdZdZdgejZejdgZdd�Z	d	d
�Z
dd�Zd
S)�aliasz3Define a shortcut that invokes one or more commandsz0define a shortcut to invoke one or more commandsT�remove�r�remove (unset) the aliascCstj|�d|_d|_dS)N)r�initialize_options�argsr)�selfrrrrs
zalias.initialize_optionscCs*tj|�|jr&t|j�dkr&td��dS)N�zFMust specify exactly one argument (the alias name) when using --remove)r�finalize_optionsr�lenrr)rrrrr#s
zalias.finalize_optionscCs�|jjd�}|jsDtd�td�x|D]}tdt||��q(WdSt|j�dkr�|j\}|jrfd}q�||kr�tdt||��dStd|�dSn$|jd}djtt	|jdd���}t
|jd||ii|j�dS)	N�aliaseszCommand Aliasesz---------------zsetup.py aliasrz No alias definition found for %rr� )
ZdistributionZget_option_dictr�print�format_aliasrr�joinrrr�filenameZdry_run)rrr�commandrrr�run+s&

z	alias.runN)rrr)�__name__�
__module__�__qualname__�__doc__�descriptionZcommand_consumes_argumentsrZuser_optionsZboolean_optionsrrr#rrrrrsrcCsZ||\}}|td�krd}n,|td�kr0d}n|td�krBd}nd|}||d|S)	N�globalz--global-config �userz--user-config Zlocal�z
--filename=%rr)r)�namer�sourcer"rrrrFsrN)Zdistutils.errorsrZsetuptools.extern.six.movesrZsetuptools.command.setoptrrrrrrrrrr�<module>s

4

?>