uawdijnntqw1x1x1
IP : 3.139.86.74
Hostname : host45.registrar-servers.com
Kernel : Linux host45.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
..
/
lib64
/
td-agent-bit
/
..
/
python3.8
/
collections
/
..
/
__pycache__
/
getopt.cpython-38.opt-2.pyc
/
/
U e5dA�@s�ddddgZddlZzddlmZWnek r@dd�ZYnXGd d�de�ZeZgfd d�Zgfdd�Z dd �Z dd�Zdd�Zdd�Z edkr�ddlZeeejdd�dddg��dS)�GetoptError�error�getopt� gnu_getopt�N)�gettextcCs|S�N�)�srr�/usr/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 possibilitiesZunique_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(dkrnq|�d|d�Sqttd�||��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
/home/../lib64/td-agent-bit/../python3.8/collections/../__pycache__/getopt.cpython-38.opt-2.pyc