Hacked By AnonymousFox

Current Path : /opt/alt/python38/lib64/python3.8/__pycache__/
Upload File :
Current File : //opt/alt/python38/lib64/python3.8/__pycache__/getopt.cpython-38.opt-2.pyc

U

@��dA�@s�ddddgZddlZzddlmZWnek
r@dd�ZYnXGd	d�de�ZeZgfd
d�Zgfdd�Z	dd
�Z
dd�Zdd�Zdd�Z
edkr�ddlZeeejdd�dddg��dS)�GetoptError�error�getopt�
gnu_getopt�N)�gettextcCs|S�N�)�srr�+/opt/alt/python38/lib64/python3.8/getopt.py�_)�rc@s&eZdZdZdZddd�Zdd�ZdS)r�cCs||_||_t�|||�dSr)�msg�opt�	Exception�__init__)�selfrrrrr
r.szGetoptError.__init__cCs|jSr)r)rrrr
�__str__3szGetoptError.__str__N)r
)�__name__�
__module__�__qualname__rrrrrrrr
r+s
cCs�g}t|�td�kr|g}nt|�}|r�|d�d�r�|ddkr�|ddkr\|dd�}q�|d�d�r�t||ddd�||dd��\}}q$t||ddd�||dd��\}}q$||fS)Nr
r�-�--��)�type�list�
startswith�do_longs�	do_shorts)�args�	shortopts�longopts�optsrrr
r8s((cCs6g}g}t|t�r|g}nt|�}|�d�r>|dd�}d}ntj�d�rPd}nd}|�r.|ddkrz||dd�7}�q.|ddd�dkr�t||ddd�||dd��\}}qT|ddd�d	kr�|dd	kr�t||ddd�||dd��\}}qT|�r||7}�q.qT|�	|d�|dd�}qT||fS)
N�+rTZPOSIXLY_CORRECTFrrrr)
�
isinstance�strrr�os�environ�getrr�append)r r!r"r#Z	prog_argsZall_options_firstrrr
rcs2

( (cCs�z|�d�}Wntk
r&d}Yn X|d|�||dd�}}t||�\}}|r�|dkr�|svttd�||��|d|dd�}}n|dk	r�ttd�||��|�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�}|s(ttd������|kr8d�fS�d|krLd�fSt|�dkrjttd�����|d	}|�d�}|r�|dd
�}||fS)Ncsg|]}|���r|�qSr)r)�.0�o�rrr
�
<listcomp>�s
z!long_has_args.<locals>.<listcomp>zoption --%s not recognizedFr+Trzoption --%s not a unique prefixr���)rr�len�endswith)rr"Z
possibilitiesZunique_matchr1rr4r
r.�s
r.cCs�|dkr�|d|dd�}}t||�rh|dkr\|sFttd�||��|d|dd�}}|d}}nd}|�d||f�q||fS)Nr
rrzoption -%s requires argumentr)�
short_has_argrrr*)r#Z	optstringr!r rr0rrr
r�s
�rcCsXtt|��D]4}|||kr(dkrnq|�d|d�Sqttd�||��dS)N�:rzoption -%s not recognized)�ranger7rrr)rr!r/rrr
r9�sr9�__main__rza:bzalpha=Zbeta)�__all__r'rr�ImportErrorrrrrrrr.rr9r�sys�print�argvrrrr
�<module>"s +2

Hacked By AnonymousFox1.0, Coded By AnonymousFox