ok

Mini Shell

Direktori : /opt/cloudlinux/venv/lib/python3.11/site-packages/clwpos/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/clwpos/__pycache__/parse.cpython-311.pyc

�

�2�fj��~�ddlmZddlZddlmZmZmZmZGd�dejej	��Z
Gd�d��ZdS)�)�absolute_importN)�Tuple�List�Dict�Anyc���eZdZ�fd�Z�xZS)�CustomFormatterc�D��t��j|i|�ddd���dS)N���)�width�max_help_position)�super�__init__)�self�args�kwargs�	__class__s   ��C/opt/cloudlinux/venv/lib64/python3.11/site-packages/clwpos/parse.pyrzCustomFormatter.__init__s2��������$�J�&�J��r�J�J�J�J�J�J�J�)�__name__�
__module__�__qualname__r�
__classcell__)rs@rr	r	sA�������K�K�K�K�K�K�K�K�Krr	c�p�eZdZdZd�Zd
d�Zd�Zdeeee	e
ee	fffd�Zd�Z
d	S)�ArgumentParserzHelper to create parsers.c��tj|i|��|_|j�ddd���|_i|_|jj|_dS)N�commandTz	{command})�dest�required�metavar)�argparser�_parser�add_subparsers�
_subparser�_subparsers�add_argument)rrrs   rrzArgumentParser.__init__sU���.��?��?�?����,�5�5�9�t�]h�5�i�i������!�L�5����rFc��������fd�}|S)Nc�~���jj|j�dd��fd�i����j|j<|S)N�_�-�allow_abbrev)r%�
add_parserr�replacer&)�methodr,rrs ���r�	decoratorz)ArgumentParser.command.<locals>.decoratorsV���0J���0J���'�'��S�1�1�1�1�)�1��1�1�D��V�_�-�
�Mr�)rr,rr0s``` rrzArgumentParser.commands0�����	�	�	�	�	�	�	��rc��������fd�}|S)Nc�B���j|jj�i���|S�N)r&rr')r/rrrs ���rr0z*ArgumentParser.argument.<locals>.decorator)s*���:�D��V�_�-�:�D�K�F�K�K�K��Mrr1)rrrr0s``` r�argumentzArgumentParser.argument(s0�����	�	�	�	�	�	�	��r�arguments_paramsc��������fd�}|S)z�
        Create mutually exclusive group with arguments
        `argument_params` is a list of tuples with *args and **kwargs to create arguments in the group
        c�~���j|jjdi���}�D]}|j|di|d���|S)Nr�r1)r&r�add_mutually_exclusive_groupr')r/�groupr5r6rrs   ���rr0z8ArgumentParser.mutual_exclusive_group.<locals>.decorator8s_���R�D�$�V�_�5�R�\�\�U[�\�\�E�,�
@�
@��"��"�H�Q�K�?�8�A�;�?�?�?�?��Mrr1)rr6rr0s``` r�mutual_exclusive_groupz%ArgumentParser.mutual_exclusive_group/s0�����	�	�	�	�	�	�	��rc�6�|j�|��Sr4)r#�
parse_args)rrs  rr>zArgumentParser.parse_argsAs���|�&�&�t�,�,�,rN)F)rrr�__doc__rrr5rrrr�strr<r>r1rrrrs�������#�#�6�6�6�	�	�	�	�����"�5��c��D��c��N�)B�#C�D�����$-�-�-�-�-rr)�
__future__rr"�typingrrrr�ArgumentDefaultsHelpFormatter�
HelpFormatterr	rr1rr�<module>rEs���'�&�&�&�&�&�����)�)�)�)�)�)�)�)�)�)�)�)�K�K�K�K�K�h�<�h�>T�K�K�K�
/-�/-�/-�/-�/-�/-�/-�/-�/-�/-r

Zerion Mini Shell 1.0