python (3.11.7)
    *eM	                     N    d dl mZ d dlmZmZmZ d Z G d de          Zd ZdS )    )DistutilsOptionError)edit_configoption_baseconfig_filec                     dD ]}|| v rt          |           c S |                                 | gk    rt          |           S | S )z4Quote an argument for later parsing by shlex.split())"'\#)reprsplit)argcs     Z/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/site-packages/setuptools/command/alias.pyshquoter      sW    
   8899 
yy{{seCyyJ    c                   X    e Zd ZdZdZdZdgej        z   Zej        dgz   Zd Z	d Z
d Zd	S )
aliasz3Define a shortcut that invokes one or more commandsz0define a shortcut to invoke one or more commandsT)removerzremove (unset) the aliasr   c                 J    t          j        |            d | _        d | _        d S )N)r   initialize_optionsargsr   selfs    r   r   zalias.initialize_options   s%    &t,,,	r   c                     t          j        |            | j        r't          | j                  dk    rt          d          d S d S )N   zFMust specify exactly one argument (the alias name) when using --remove)r   finalize_optionsr   lenr   r   r   s    r   r   zalias.finalize_options!   sV    $T***; 	3ty>>Q..&!  
	 	..r   c                 V   | j                             d          }| j        sCt          d           t          d           |D ] }t          dt	          ||                     !d S t          | j                  dk    rK| j        \  }| j        rd }nz||v r t          dt	          ||                     d S t          d|z             d S | j        d         }d                    t          t          | j        dd                              }t          | j        d||ii| j                   d S )	NaliaseszCommand Aliasesz---------------zsetup.py aliasr   z No alias definition found for %rr    )
distributionget_option_dictr   printformat_aliasr   r   joinmapr   r   filenamedry_run)r   r!   r   commands       r   runz	alias.run)   s;   #33I>>y 	<#$$$#$$$  
F 
F&UG(D(DEEEEF
^^q
 
 YFE{ 
'!!&UG(D(DEEE85@AAAIaLEhhs7DIabbM::;;GDMIw/?#@$,OOOOOr   N)__name__
__module____qualname____doc__descriptioncommand_consumes_argumentsr   user_optionsboolean_optionsr   r   r,    r   r   r   r      s        ==DK!% 	4 !L "1XJ>O  
  P P P P Pr   r   c                     ||          \  }}|t          d          k    rd}n1|t          d          k    rd}n|t          d          k    rd}nd|z  }|| z   dz   |z   S )	Nglobalz--global-config userz--user-config local z
--filename=%rr"