AlkantarClanX12

Your IP : 18.224.63.123


Current Path : /opt/alt/python310/lib64/python3.10/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/__pycache__/getopt.cpython-310.opt-2.pyc

o

6��fA�@s�	gd�ZddlZzddlmZWn
eydd�ZYnwGdd�de�ZeZgfdd	�Zgfd
d�Z	dd
�Z
dd�Zdd�Zdd�Z
edkr^ddlZeeejdd�dddg��dSdS))�GetoptError�error�getopt�
gnu_getopt�N)�gettextcCs|S�N�)�srr�-/opt/alt/python310/lib64/python3.10/getopt.py�_)src@s&eZdZdZdZddd�Zdd�ZdS)r�cCs||_||_t�|||�dSr)�msg�opt�	Exception�__init__)�selfr
rrrr
r.szGetoptError.__init__cCs|jSr)r
)rrrr
�__str__3szGetoptError.__str__N)r)�__name__�
__module__�__qualname__rr
rrrrrr
r+s

rcCs�	g}t|�td�kr|g}nt|�}|rp|d�d�rp|ddkrp|ddkr3|dd�}	||fS|d�d�rNt||ddd�||dd��\}}nt||ddd�||dd��\}}|rp|d�d�rp|ddks"||fS)Nrr�-�--��)�type�list�
startswith�do_longs�	do_shorts)�args�	shortopts�longopts�optsrrr
r8s�(&�	rcCs@	g}g}t|t�r|g}nt|�}|�d�r |dd�}d}ntj�d�r)d}nd}|r�|ddkr@||dd�7}	||fS|ddd�dkr^t||ddd�||dd��\}}n<|ddd�d	kr�|dd	kr�t||ddd�||dd��\}}n|r�||7}	||fS|�	|d�|dd�}|s-||fS)
N�+rTZPOSIXLY_CORRECTFrrrr)
�
isinstance�strrr�os�environ�getrr�append)rr r!r"Z	prog_argsZall_options_firstrrr
rcs:

�( (��rcCs�z|�d�}Wntyd}Ynw|d|�||dd�}}t||�\}}|rF|durE|s:ttd�||��|d|dd�}}n
|durSttd�||��|�d||p[df�||fS)N�=rzoption --%s requires argumentrz%option --%s must not have an argumentrr)�index�
ValueError�
long_has_argsrrr))r"rr!r�i�optarg�has_argrrr
r�s"��rcs��fdd�|D�}|sttd������|vrd�fS�d|vr&d�fSt|�dkr5ttd�����|d	}|�d�}|rF|dd
�}||fS)Ncsg|]	}|���r|�qSr)r)�.0�o�rrr
�
<listcomp>�sz!long_has_args.<locals>.<listcomp>zoption --%s not recognizedFr*Trzoption --%s not a unique prefixr���)rr�len�endswith)rr!Z
possibilitiesZunique_matchr0rr3r
r-�s
r-cCs�|dkrC|d|dd�}}t||�r4|dkr.|s#ttd�||��|d|dd�}}|d}}nd}|�d||f�|dks||fS)Nrrrzoption -%s requires argumentr)�
short_has_argrrr))r"Z	optstringr rrr/rrr
r�s
��rcCsTtt|��D]}|||krdkr nq|�d|d�Sqttd�||��)N�:rzoption -%s not recognized)�ranger6rrr)rr r.rrr
r8�s
�r8�__main__rza:bzalpha=Zbeta)�__all__r&rr�ImportErrorrrrrrrr-rr8r�sys�print�argvrrrr
�<module>s(!�+2"�