Hacked By AnonymousFox

Current Path : /opt/alt/python312/lib64/python3.12/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/__pycache__/getopt.cpython-312.opt-2.pyc

�

�Q�f@����	gd�ZddlZ	ddlmZGd�de�ZeZgfd�Zgfd�Z	d	�Z
d
�Zd�Zd�Z
ed
k(r$ddlZeeej"dddddg��yy#e$rd�ZY�WwxYw))�GetoptError�error�getopt�
gnu_getopt�N)�gettextc��|S�N�)�ss �-/opt/alt/python312/lib64/python3.12/getopt.py�_r
)s��Q�h�c�"�eZdZdZdZdd�Zd�Zy)r�c�N�||_||_tj|||�yr	)�msg�opt�	Exception�__init__)�selfrrs   rrzGetoptError.__init__.s"�����������4��c�*rc��|jSr	)r)rs r�__str__zGetoptError.__str__3s���x�x�rN)r)�__name__�
__module__�__qualname__rrrrr
rrrr+s��
�C�
�C�+�
rrc�~�	g}t|t�r|g}nt|�}|r�|djd�r�|ddk7rz|ddk(r
|dd}	||fS|djd�rt	||ddd||dd�\}}nt||ddd||dd�\}}|r|djd�r	|ddk7r�z||fS)Nr�-�--��)�
isinstance�str�list�
startswith�do_longs�	do_shorts)�args�	shortopts�longopts�optss    rrr8s����4�D��(�C� ��:����>��
�4��7�%�%�c�*�t�A�w�#�~���7�d�?����8�D����:����7���d�#�!�$��Q�����X�t�A�B�x�H�J�D�$�"�4��a�����i��a�b��J�J�D�$��4��7�%�%�c�*�t�A�w�#�~���:�rc���	g}g}t|t�r|g}nt|�}|jd�r|dd}d}n$tj
j
d�rd}nd}|r�|ddk(r
||ddz
}	||fS|ddddk(rt||ddd||dd�\}}nS|dddd	k(r#|dd	k7rt||ddd||dd�\}}n%|r
||z
}	||fS|j|d�|dd}|r��||fS)
N�+rT�POSIXLY_CORRECTFrrr r)
r!r"r#r$�os�environ�getr%r&�append)r'r(r)r*�	prog_args�all_options_firsts      rrrcs\����D��I��(�C� ��:����>�����C� ��a�b�M�	� ��	�����)�	*� ��!��
���7�d�?���a�b��!�I����?����7�2�A�;�$��!�$��Q�����X�t�A�B�x�H�J�D�$�
�!�W�R�a�[�C�
�D��G�s�N�"�4��a�����i��a�b��J�J�D�$� ��T�!�	��
��?��� � ��a��)��A�B�x���"��?�rc�B�	|jd�}|d|||dzd}}t||�\}}|r'|�?|stt	d�|z|��|d|dd}}n|�tt	d�|z|��|jd|z|xsdf�||fS#t$rd}Y�}wxYw)N�=rzoption --%s requires argumentrz%option --%s must not have an argumentrr)�index�
ValueError�
long_has_argsrr
r1)r*rr)r'�i�optarg�has_args       rr%r%�s���)��I�I�c�N���"�1�g�s�1�Q�3�4�y�V�� ��h�/�L�G�S���>��!�!�$C�"D�s�"J�C�P�P���7�D���H�D�F�	�	��!�C�D�s�J�C�P�P��K�K����V�\�r�*�+���:��������s�B�B�Bc�6�|D�cgc]}|j|�s�|��}}|sttd�|z|��||vrd|fS|dz|vrd|fSt|�dkDrttd�|z|��|d}|j	d�}|r|dd}||fScc}w)	Nzoption --%s not recognizedFr5Trzoption --%s not a unique prefixr���)r$rr
�len�endswith)rr)�o�
possibilities�unique_matchr;s      rr8r8�s��� (�>��1�A�L�L��,=�Q��M�>���!�8�9�C�?��E�E�
�m���c�z��	�s��m�	#��S�y��
�=��A���!�=�>��D�c�J�J� ��#�L��#�#�C�(�G��#�C�R�(���L� � ��%?s
�B�Bc���|dk7rb|d|dd}}t||�r.|dk(r$|sttd�|z|��|d|dd}}|d}}nd}|jd|z|f�|dk7r�b||fS)Nrrrzoption -%s requires argumentr)�
short_has_argrr
r1)r*�	optstringr(r'rr:s      rr&r&�s���
�r�/�"�1��y���}�Y����i�(��B���%�a�(F�&G�#�&M�&)�+�+�"&�q�'�4���8�4�	� )�2�I�F��F����S�3�Y��'�(��r�/���:�rc��tt|��D]*}|||cxk(rdk7s�n�|jd|dz�cStt	d�|z|��)N�:rzoption -%s not recognized)�ranger>r$rr
)rr(r9s   rrDrD�sW��
�3�y�>�
"���)�A�,�%�#�%��'�'��Q�q�S�1�1�#��a�3�4�s�:�C�
@�@r�__main__rza:bzalpha=�beta)�__all__r.rr
�ImportErrorrrrrrr%r8r&rDr�sys�print�argvr
rr�<module>rPs����B8��	��$�
	�)�	�	��')�)�V,.�0�d�,!�*
�A��z���	�&����!�"��u�x��&8�
9�:���]����s�A�A)�(A)

Hacked By AnonymousFox1.0, Coded By AnonymousFox