%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3.12/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3.12/__pycache__/argparse.cpython-312.pyc

�

���fv�����dZdZgd�ZddlZddlZddlZddl	Z		ddl
m
ZmZdZd	Zd
ZdZdZd
ZdZGd�de�Zd�ZGd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�de�Zd�ZGd�de�ZGd�d e�Z Gd!�d"e�Z!e�Z"Gd#�d$e!�Z#Gd%�d&e!�Z$Gd'�d(e!�Z%Gd)�d*e%�Z&Gd+�d,e%�Z'Gd-�d.e!�Z(Gd/�d0e!�Z)Gd1�d2e!�Z*Gd3�d4e!�Z+Gd5�d6e!�Z,Gd7�d8e!�Z-Gd9�d:e(�Z.Gd;�d<e�Z/Gd=�d>e�Z0Gd?�d@e�Z1GdA�dBe1�Z2GdC�dDe2�Z3GdE�dFee1�Z4y#e
$r
d�Zd�ZY��TwxYw)Ga�
Command-line parsing library

This module is an optparse-inspired command-line parsing library that:

    - handles both optional and positional arguments
    - produces highly informative usage messages
    - supports parsers that dispatch to sub-parsers

The following is a simple usage example that sums integers from the
command-line and writes the result to a file::

    parser = argparse.ArgumentParser(
        description='sum the integers at the command line')
    parser.add_argument(
        'integers', metavar='int', nargs='+', type=int,
        help='an integer to be summed')
    parser.add_argument(
        '--log', default=sys.stdout, type=argparse.FileType('w'),
        help='the file where the sum should be written')
    args = parser.parse_args()
    args.log.write('%s' % sum(args.integers))
    args.log.close()

The module contains the following public classes:

    - ArgumentParser -- The main entry point for command-line parsing. As the
        example above shows, the add_argument() method is used to populate
        the parser with actions for optional and positional arguments. Then
        the parse_args() method is invoked to convert the args at the
        command-line into an object with attributes.

    - ArgumentError -- The exception raised by ArgumentParser objects when
        there are errors with the parser's actions. Errors raised while
        parsing the command-line are caught by ArgumentParser and emitted
        as command-line messages.

    - FileType -- A factory for defining types of files to be created. As the
        example above shows, instances of FileType are typically passed as
        the type= argument of add_argument() calls.

    - Action -- The base class for parser actions. Typically actions are
        selected by passing strings like 'store_true' or 'append_const' to
        the action= argument of add_argument(). However, for greater
        customization of ArgumentParser actions, subclasses of Action may
        be defined and passed as the action= argument.

    - HelpFormatter, RawDescriptionHelpFormatter, RawTextHelpFormatter,
        ArgumentDefaultsHelpFormatter -- Formatter classes which
        may be passed as the formatter_class= argument to the
        ArgumentParser constructor. HelpFormatter is the default,
        RawDescriptionHelpFormatter and RawTextHelpFormatter tell the parser
        not to change the formatting for help text, and
        ArgumentDefaultsHelpFormatter adds information about argument defaults
        to the help.

All other classes in this module are considered implementation details.
(Also note that HelpFormatter and RawDescriptionHelpFormatter are only
considered public as object names -- the API of the formatter objects is
still considered an implementation detail.)
z1.1)�ArgumentParser�
ArgumentError�ArgumentTypeError�BooleanOptionalAction�FileType�
HelpFormatter�ArgumentDefaultsHelpFormatter�RawDescriptionHelpFormatter�RawTextHelpFormatter�MetavarTypeHelpFormatter�	Namespace�Action�ONE_OR_MORE�OPTIONAL�PARSER�	REMAINDER�SUPPRESS�ZERO_OR_MORE�N)�gettext�ngettextc��|S�N�)�messages �/usr/lib/python3.12/argparse.py�_ras����c��|dk(r|S|S�N�r)�singular�plural�ns   rrrcs����6��O��Mrz==SUPPRESS==�?�*�+zA...�...�_unrecognized_argsc�"�eZdZdZd�Zd�Zd�Zy)�_AttributeHolderaAbstract base class that provides __repr__.

    The __repr__ method returns a string in the format::
        ClassName(attr=name, attr=name, ...)
    The attributes are determined either by a class-level attribute,
    '_kwarg_names', or by inspecting the instance __dict__.
    c��t|�j}g}i}|j�D]}|jt	|���|j�D]1\}}|j
�r|j|�d|����-|||<�3|r|jdt	|�z�|�ddj|��d�S)N�=z**%s�(�, �))�type�__name__�	_get_args�append�repr�_get_kwargs�isidentifier�join)�self�	type_name�arg_strings�	star_args�arg�name�values       r�__repr__z_AttributeHolder.__repr__s�����J�'�'�	����	��>�>�#�	*�C����t�C�y�)�	*��+�+�-�	(�K�D�%�� � �"��"�"�d�E�#:�;�"'�	�$��		(�
����v��Y��7�8�$�d�i�i��&<�=�=rc�H�t|jj��Sr)�list�__dict__�items�r8s rr5z_AttributeHolder._get_kwargs�s���D�M�M�'�'�)�*�*rc��gSrrrDs rr2z_AttributeHolder._get_args�s���	rN)r1�
__module__�__qualname__�__doc__r?r5r2rrrr*r*vs���
>�+�rr*c�`�|�gSt|�tur|ddSddl}|j|�S�Nr)r0rA�copy)rCrKs  r�_copy_itemsrL�s5���}��	��E�{�d���Q�x����9�9�U��rc���eZdZdZ			dd�Zd�Zd�ZGd�de�Zd�Z	d	�Z
d
�Zd�Zd d�Z
d
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zy)!rz�Formatter for generating usage messages and argument help strings.

    Only the name of this class is considered a public API. All the methods
    provided by the class are considered an implementation detail.
    Nc���|�$	ddl}|j�j}|dz}||_||_t
|t|dz
|dz��|_||_	d|_
d|_d|_|j|d�|_|j|_t!j"dt j$�|_t!j"d�|_y#t$rd}Y��wxYw)Nr��F�z\s+z\n\n\n+)�shutil�get_terminal_size�columns�ImportError�_prog�_indent_increment�min�max�_max_help_position�_width�_current_indent�_level�_action_max_length�_Section�
_root_section�_current_section�_re�compile�ASCII�_whitespace_matcher�_long_break_matcher)r8�prog�indent_increment�max_help_position�width�_shutils      r�__init__zHelpFormatter.__init__�s����=�
�(��1�1�3�;�;����
����
�!1���"%�&7�&)�%�"�*�6F��6J�&K�#M������ ������"#���!�]�]�4��6��� $� 2� 2���#&�;�;�v�s�y�y�#A�� �#&�;�;�z�#:�� ��#�
���
�s�#C�C,�+C,c�l�|xj|jz
c_|xjdz
c_yr�r\rWr]rDs r�_indentzHelpFormatter._indent�s'������ 6� 6�6�����q��rc��|xj|jzc_|jdk\sJd��|xjdzc_y)NrzIndent decreased below 0.r rnrDs r�_dedentzHelpFormatter._dedent�sA������ 6� 6�6���#�#�q�(�E�*E�E�(����q��rc��eZdZdd�Zd�Zy)�HelpFormatter._SectionNc�<�||_||_||_g|_yr)�	formatter�parent�headingrC)r8rurvrws    rrlzHelpFormatter._Section.__init__�s��&�D�N� �D�K�"�D�L��D�Jrc	��|j�|jj�|jj}||jD��cgc]
\}}||���c}}�}|j�|jj�|sy|jturM|j�A|jj}td�t|j��z}d|d|fz}nd}|d||dg�Scc}}w)N�z%(heading)s:)rw�%*s%s
�
)rvruro�_join_partsrCrqrwrr\r�dict)r8r7�func�args�	item_help�current_indent�heading_textrws        r�format_helpz"HelpFormatter._Section.format_help�s����{�{�&����&�&�(��>�>�-�-�D��D�J�J�G�j�d�D�d�D�k�G�H�I��{�{�&����&�&�(����|�|�8�+����0H�!%���!?�!?�� ��0�4����3M�M��#�~�r�<�&H�H������w�	�4�8�9�9��#Hs�C;
r)r1rFrGrlr�rrrr_rs�s��	�	:rr_c�R�|jjj||f�yr)rarCr3)r8r~rs   r�	_add_itemzHelpFormatter._add_item�s �����#�#�*�*�D�$�<�8rc��|j�|j||j|�}|j|jg�||_yr)ror_rar�r�)r8rw�sections   r�
start_sectionzHelpFormatter.start_section�s?�������-�-��d�&;�&;�W�E�����w�*�*�B�/� '��rc�Z�|jj|_|j�yr)rarvrqrDs r�end_sectionzHelpFormatter.end_sections�� $� 5� 5� <� <������rc�V�|tur!|�|j|j|g�yyyr)rr��_format_text)r8�texts  r�add_textzHelpFormatter.add_texts-���x��D�$4��N�N�4�,�,�t�f�5�%5�rc�Z�|tur#||||f}|j|j|�yyr)rr��
_format_usage)r8�usage�actions�groups�prefixrs      r�	add_usagezHelpFormatter.add_usages1���� ��'�6�6�1�D��N�N�4�-�-�t�4�!rc�n�|jtur�|j}||�g}|j|�D]}|j	||���tt
t|��}||jz}t|j|�|_	|j|j|g�yyr)�helpr�_format_action_invocation�_iter_indented_subactionsr3rY�map�lenr\r^r��_format_action)r8�action�get_invocation�invocations�	subaction�invocation_length�
action_lengths       r�add_argumentzHelpFormatter.add_arguments����;�;�h�&�"�;�;�N�)�&�1�2�K�!�;�;�F�C�
>�	��"�"�>�)�#<�=�
>�!$�C��[�$9� :��-��0D�0D�D�M�&)�$�*A�*A�*7�'9�D�#�
�N�N�4�.�.���9�'rc�4�|D]}|j|��yr)r�)r8r�r�s   r�
add_argumentszHelpFormatter.add_arguments#s���	&�F����f�%�	&rc��|jj�}|r0|jjd|�}|j	d�dz}|S)N�

r{)r`r�rf�sub�strip)r8r�s  rr�zHelpFormatter.format_help*sI���!�!�-�-�/����+�+�/�/���=�D��:�:�d�#�d�*�D��rc�^�dj|D�cgc]}|r
|tur|��c}�Scc}w)Nry)r7r)r8�part_strings�parts   rr|zHelpFormatter._join_parts1s8���w�w�$0�:� ��D��$8��:�;�	;��:s�*c����|�td�}|�|t|j��z}�nB|�|sdt|j��z}�n#|�� dt|j��z}g}g}|D]1}|jr|j	|��!|j	|��3|j
}	|	||z|�}
dj
||
fD�cgc]}|s�|��	c}�}|j|jz
�t|�t|�z�kD�r]d}|	||�}
|	||�}tj||
�}tj||�}dj
|�|
k(sJ�dj
|�|k(sJ�d�fd�	}t|�t|�zd�zkr[dt|�t|�zdzz}|r'||g|z||�}|j|||��nw|r||g|z||�}nf|g}nbdt|�z}||z}|||�}t|�dkDr2g}|j|||��|j|||��|g|z}d	j
|�}|�|�d
�Scc}w)Nzusage: �rgz%(prog)s� z%\(.*?\)+(?=\s|$)|\[.*?\]+(?=\s|$)|\S+c���g}g}t|�}|�t|�dz
}n|dz
}|D]d}|dzt|�z�kDr,|r*|j|dj|�z�g}|dz
}|j|�|t|�dzz
}�f|r#|j|dj|�z�|�|d|d|d<|S)Nr r�r)r�r3r7)	�parts�indentr��lines�line�
indent_length�line_lenr��
text_widths	        �r�	get_linesz.HelpFormatter._format_usage.<locals>.get_linesfs�����E��D�$'��K�M��)�#&�v�;��?��#0�1�#4�� %�2��#�a�<�#�d�)�3�j�@�T�!�L�L��#�(�(�4�.�)@�A�#%�D�'4�q�'8�H����D�)� �C��I��M�1��
2�����V�c�h�h�t�n�%<�=��)�#(��8�M�N�#;��a�� �Lrg�?r r{r�r)
rr}rV�option_stringsr3�_format_actions_usager7r[r\r�rb�findall�extend)r8r�r�r�r�rg�	optionals�positionalsr��format�action_usage�s�part_regexp�	opt_usage�	pos_usage�	opt_parts�	pos_partsr�r�r�r�r�s                     @rr�zHelpFormatter._format_usage6s�����>��y�\�F����D�d�j�j�1�1�E��]�7���4�:�:�!6�6�E��]���$�*�*� 5�5�D��I��K�!�
/���(�(��$�$�V�,��&�&�v�.�	
/��/�/�F�!�)�k�"9�6�B�L��H�H�$��)=�C�A��a�C�D�E����t�';�';�;�J��6�{�S��Z�'�*�4���
#�9�f�5�	�"�;��7�	��K�K��Y�?�	��K�K��Y�?�	��x�x�	�*�i�7�7�7��x�x�	�*�i�7�7�7�!�,�v�;��T��*�d�Z�.?�?� �C��K�#�d�)�$;�a�$?�@�F� � )�4�&�9�*<�f�f� M�����Y�y�&�%A�B�"� )�4�&�9�*<�f�f� M��!%���!�3�v�;�.�F�%�	�1�E�%�e�V�4�E��5�z�A�~� "�����Y�y�&�%A�B����Y�y�&�%A�B�!�F�U�N�E��	�	�%�(��$�U�+�+��GDs�
I5�I5c���t�}i}|D�]4}|jstd|����	|j|jd�}t	|j�}||z}||||jk(s�jd}	|jD]+}
|j|
�|
jtus�'|	dz
}	�-||	z
}|s��|js/||vr||xxdz
cc<nd||<||vr||xxdz
cc<n9d||<n3|dkDr.||vr||xxdz
cc<nd||<||vr||xxd	z
cc<nd	||<t|dz|�D]}d
||<�	��7g}
t|�D�]U\}}
|
jturd|
jd�|j|�d
k(r|j|��P|j|dz�d
k(s�h|j|dz��}|
jsN|j|
�}|j!|
|�}|
|vr|ddk(r
|ddk(r|dd}|
j|���|
jd}|
j"dk(r|
j%�}n*|j'|
�}|j!|
|�}|�d|��}|
js	|
|vrd
|z}|
j|���Xt)|d��D]}||g|
||�
dj+|
D�cgc]}|��|��	c}�}d}d}t-j.d|zd|�}t-j.d|zd|�}t-j.|�d|��d|�}|j1�}|S#t$rY��MwxYwcc}w)Nzempty group rr z [�[�]z (r-r/�|���r��[%s]T)�reversez[\[(]z[\])]z(%s) z\1� (%s)z *ry)�set�_group_actions�
ValueError�indexr��addr�r�required�range�	enumerater3�get�popr��#_get_default_metavar_for_positional�_format_args�nargs�format_usage�!_get_default_metavar_for_optional�sortedr7rbr�r�)r8r�r��
group_actions�inserts�group�start�group_action_count�end�suppressed_actions_countr��exposed_actions_count�ir��defaultr��
option_string�args_string�itemr��open�closes                      rr�z#HelpFormatter._format_actions_usage�s�����
����*	)�E��'�'� �<��w�!7�8�8�&
)��
�
�e�&:�&:�1�&=�>��&)��)=�)=�%>�"��0�0���5��%��)=�)=�=�/0�,�"'�"6�"6�:��%�)�)�&�1�!�;�;�(�2�4��9�4�:�
-?�AY�,Y�)�0� � �>�>� �G�+�#�E�N�d�2�N�-0�G�E�N��'�>�#�C�L�C�/�L�+.�G�C�L�.��2� �G�+�#�E�N�d�2�N�-0�G�E�N��'�>�#�C�L�C�/�L�+.�G�C�L�"�5�1�9�c�2�)��%(���
�)�S*	)�Z��"�7�+�-	#�I�A�v��{�{�h�&����T�"��;�;�q�>�S�(��K�K��N��[�[��Q��'�3�.��K�K��A��&��*�*��B�B�6�J���(�(���9���]�*��A�w�#�~�$�r�(�c�/�#�A�b�z�����T�"�!'� 5� 5�a� 8�
��<�<�1�$�!�.�.�0�D�
#�D�D�V�L�G�"&�"3�"3�F�G�"D�K�&3�[�A�D����6��+F�!�D�=�D����T�"�[-	#�`���.�	&�A�!�!�*��E�!�A�J�	&��x�x�%�D�$�4�3C��D�E�������w�w�x�$���t�4���w�w�x�%�'���5���w�w�D�%�0�#�t�<���z�z�|�����O�
��
��xEs�M�M �M �	M�Mc���d|vr|t|j��z}t|j|jz
d�}d|jz}|j|||�dzS)Nz%(prog)r��r�r�)r}rVrYr[r\�
_fill_text)r8r�r�r�s    rr�zHelpFormatter._format_text
s`������$�D�J�J�/�/�D�����t�';�';�;�R�@�
��t�+�+�+�����t�Z��8�6�A�Arc�`�t|jdz|j�}t|j|z
d�}||j
z
dz
}|j
|�}|js|j
d|f}d|z}n<t|�|kr|j
d||f}d|z}d}n|j
d|f}d|z}|}|g}|jr{|jj�ra|j|�}	|	rp|j|	|�}
|jdd|
dfz�|
ddD]}|jd|d|fz��n"|jd�s|jd�|j|�D]"}|j|j|���$|j!|�S)	NrOr�ryrzz	%*s%-*s  rr r{)rXr^rZrYr[r\r�r�r�r��_expand_help�_split_linesr3�endswithr�r�r|)
r8r��
help_position�
help_width�action_width�
action_header�tup�indent_firstr��	help_text�
help_linesr�r�s
             rr�zHelpFormatter._format_actions����D�3�3�a�7� �3�3�5�
�����}�4�b�9�
�$�t�';�';�;�a�?���6�6�v�>�
��{�{��&�&��M�9�C�%��O�M���
�<�
/��&�&��L�-�G�C�'�#�-�M��L��&�&��M�9�C�%��O�M�(�L�����;�;�6�;�;�,�,�.��)�)�&�1�I��!�.�.�y�*�E�
����Y�,��J�q�M�)J�J�K�&�q�r�N�H�D��L�L��m�R��-F�!F�G�H��'�'��-��L�L����7�7��?�	9�I��L�L��,�,�Y�7�8�	9�����&�&rc��|js-|j|�}|j||�d�\}|Sg}|jdk(r|j	|j�nJ|j|�}|j
||�}|jD]}|j|�d|����dj|�S)Nr rr�r.)	r�r��_metavar_formatterr�r�r�r�r3r7)r8r�r��metavarr�r�r�s       rr�z'HelpFormatter._format_action_invocationAs����$�$��>�>�v�F�G�?�t�.�.�v�w�?��B�H�G��N��E��|�|�q� ����V�2�2�3�
�@�@��H��"�/�/���@��%+�%:�%:�I�M��L�L�M�;�!G�H�I��9�9�U�#�#rc����|j�
|j�nE|j�7|jD�cgc]
}t|���}}ddj|�z�n|��fd�}|Scc}w)Nz{%s}�,c�4��t�t�r�S�f|zSr)�
isinstance�tuple)�
tuple_size�results �rr�z0HelpFormatter._metavar_formatter.<locals>.formatbs����&�%�(��
��z�J�.�.r)r��choices�strr7)r8r��default_metavar�choice�choice_strsr�rs      @rr�z HelpFormatter._metavar_formatterYse����>�>�%��^�^�F�
�^�^�
'�5;�^�^�D�6�3�v�;�D�K�D��c�h�h�{�3�3�F�$�F�	/�
�
��Es�A'c��|j||�}|j�
d|d�z}|S|jtk(r
d|d�z}|S|jtk(r$|d�}t	|�dk(rd|z}|Sd|z}|S|jt
k(r
d|d�z}|S|jtk(rd}|S|jtk(r
d	|d�z}|S|jtk(rd
}|S	t|j�D�cgc]}d��}}dj|�||j�z}|Scc}w#t$r
td�d�wxYw)
Nz%sr r�rOz
[%s [%s ...]]z[%s ...]z%s [%s ...]r'z%s ...ryzinvalid nargs valuer�)
r�r�rrr�rrrrr��	TypeErrorr�r7)r8r�r	�get_metavarrr�r�formatss        rr�zHelpFormatter._format_argsis����-�-�f�o�F���<�<���K��N�*�F�.�
�-�\�\�X�
%��k�!�n�,�F�*�
�)�\�\�\�
)�!�!�n�G��7�|�q� �(�7�2��"�
�$�g�-���
��\�\�[�
(�"�[��^�3�F��
��\�\�Y�
&��F��
��\�\�V�
#���A��.�F��
��\�\�X�
%��F��
�
B�).�v�|�|�)<�=�A�4�=��=��X�X�g�&��V�\�\�)B�B�F��
��	>���
B� �!6�7�T�A�
B�s�2D?�		D:�D?�:D?�?Ec��tt|�|j��}t|�D]}||tus�||=�t|�D]$}t||d�s�||j||<�&|jd��0dj|dD�cgc]
}t|���c}�}||d<|j|�|zScc}w)Nr�r1rr.)r}�varsrVrAr�hasattrr1r�r7r�_get_help_string)r8r��paramsr=�c�choices_strs      rr�zHelpFormatter._expand_help�s����d�6�l����4����L�	!�D��d�|�x�'��4�L�	!���L�	5�D��v�d�|�Z�0�%�d�|�4�4��t��	5��:�:�i� �,��)�)�V�I�5F�$G��S��V�$G�H�K� +�F�9���$�$�V�,�v�5�5��%Hs�Cc#�K�	|j}|j�|�Ed{���|j�y7�#t$rYywxYw�wr)�_get_subactionsrorq�AttributeError)r8r��get_subactionss   rr�z'HelpFormatter._iter_indented_subactions�sN����	�#�3�3�N�
�L�L�N�%�'�'�'��L�L�N�
(��	�	��	�s1�A�A�A�A�A�	A�A�
A�Ac��|jjd|�j�}ddl}|j	||�S)Nr�r)rer�r��textwrap�wrap)r8r�rjrs    rr�zHelpFormatter._split_lines�s9���'�'�+�+�C��6�<�<�>��	��}�}�T�5�)�)rc��|jjd|�j�}ddl}|j	||||��S)Nr�r)�initial_indent�subsequent_indent)rer�r�r�fill)r8r�rjr�rs     rr�zHelpFormatter._fill_text�sF���'�'�+�+�C��6�<�<�>����}�}�T�5�,2�/5��7�	7rc��|jSr)r��r8r�s  rrzHelpFormatter._get_help_string�����{�{�rc�6�|jj�Sr)�dest�upperr#s  rr�z/HelpFormatter._get_default_metavar_for_optional�s���{�{� � �"�"rc��|jSr)r&r#s  rr�z1HelpFormatter._get_default_metavar_for_positional�r$r)rO�Nr) r1rFrGrHrlrorq�objectr_r�r�r�r�r�r�r�r�r|r�r�r�r�r�r�r�r�r�r�r�rr�r�rrrrr�s����#$�#%��	;�D��
:�6�:�@9�(��6�5�
:�$&��;�
_,�Bq�fB�.'�`$�0� �86��*�7��#�rrc��eZdZdZd�Zy)r	z�Help message formatter which retains any formatting in descriptions.

    Only the name of this class is considered a public API. All the methods
    provided by the class are considered an implementation detail.
    c�X��dj�fd�|jd��D��S)Nryc3�(�K�|]	}�|z���y�wrr)�.0r�r�s  �r�	<genexpr>z9RawDescriptionHelpFormatter._fill_text.<locals>.<genexpr>�s�����P��v��}�P�s�T)�keepends)r7�
splitlines)r8r�rjr�s   `rr�z&RawDescriptionHelpFormatter._fill_text�s#����w�w�P����$��1O�P�P�PrN)r1rFrGrHr�rrrr	r	�s
���Qrr	c��eZdZdZd�Zy)r
z�Help message formatter which retains formatting of all help text.

    Only the name of this class is considered a public API. All the methods
    provided by the class are considered an implementation detail.
    c�"�|j�Sr)r1)r8r�rjs   rr�z!RawTextHelpFormatter._split_lines�s����� � rN)r1rFrGrHr�rrrr
r
�s���!rr
c��eZdZdZd�Zy)rz�Help message formatter which adds default values to argument help.

    Only the name of this class is considered a public API. All the methods
    provided by the class are considered an implementation detail.
    c��|j}|�d}d|vrF|jtur4ttg}|j
s|j|vr|td�z
}|S)a6
        Add the default value to the option help message.

        ArgumentDefaultsHelpFormatter and BooleanOptionalAction when it isn't
        already present. This code will do that, detecting cornercases to
        prevent duplicates or cases where it wouldn't make sense to the end
        user.
        ryz
%(default)z (default: %(default)s))r�r�rrrr�r�r)r8r�r��defaulting_nargss    rrz.ArgumentDefaultsHelpFormatter._get_help_string�s`���{�{���<��D��t�#��~�~�X�-�$,�l�#;� ��(�(�F�L�L�<L�,L��A�7�8�8�D��rN)r1rFrGrHrrrrrr�s���rrc��eZdZdZd�Zd�Zy)raHelp message formatter which uses the argument 'type' as the default
    metavar value (instead of the argument 'dest')

    Only the name of this class is considered a public API. All the methods
    provided by the class are considered an implementation detail.
    c�.�|jjSr�r0r1r#s  rr�z:MetavarTypeHelpFormatter._get_default_metavar_for_optional�����{�{�#�#�#rc�.�|jjSrr9r#s  rr�z<MetavarTypeHelpFormatter._get_default_metavar_for_positional�r:rN)r1rFrGrHr�r�rrrrr�s���$�$rrc�2�|�y|jrdj|j�S|jdtfvr|jS|jdtfvr|jS|j
r!ddj|j
�zdzSy)N�/�{r�})r�r7r�rr&r)�arguments r�_get_action_namerA�s������	�	 �	 ��x�x��/�/�0�0�	�	�	�$��!1�	1�����	���t�X�.�	.��}�}��	�	�	��S�X�X�h�.�.�/�/�#�5�5�rc��eZdZdZd�Zd�Zy)rz�An error from creating or using an argument (optional or positional).

    The string value of this exception is the message, augmented with
    information about the argument that caused it.
    c�2�t|�|_||_yr)rA�
argument_namer)r8r@rs   rrlzArgumentError.__init__s��-�h�7�����rc�~�|j�d}ntd�}|t|j|j��zS)Nz%(message)sz'argument %(argument_name)s: %(message)s)rrD)rDrr}r)r8r�s  r�__str__zArgumentError.__str__sA�����%�"�F��@�A�F���T�\�\�+/�+=�+=�?�?�	?rN)r1rFrGrHrlrFrrrrr	s����?rrc��eZdZdZy)rz@An error from trying to convert a command line string to a type.N)r1rFrGrHrrrrrs��J�rrc�<�eZdZdZ								dd�Zd�Zd�Zdd�Zy)	r
a\	Information about how to convert command line strings to Python objects.

    Action objects are used by an ArgumentParser to represent the information
    needed to parse a single argument from one or more strings from the
    command line. The keyword arguments to the Action constructor are also
    all attributes of Action instances.

    Keyword Arguments:

        - option_strings -- A list of command-line option strings which
            should be associated with this action.

        - dest -- The name of the attribute to hold the created object(s)

        - nargs -- The number of command-line arguments that should be
            consumed. By default, one argument will be consumed and a single
            value will be produced.  Other values include:
                - N (an integer) consumes N arguments (and produces a list)
                - '?' consumes zero or one arguments
                - '*' consumes zero or more arguments (and produces a list)
                - '+' consumes one or more arguments (and produces a list)
            Note that the difference between the default and nargs=1 is that
            with the default, a single value will be produced, while with
            nargs=1, a list containing a single value will be produced.

        - const -- The value to be produced if the option is specified and the
            option uses an action that takes no values.

        - default -- The value to be produced if the option is not specified.

        - type -- A callable that accepts a single string argument, and
            returns the converted value.  The standard Python types str, int,
            float, and complex are useful examples of such callables.  If None,
            str is used.

        - choices -- A container of values that should be allowed. If not None,
            after a command-line argument has been converted to the appropriate
            type, an exception will be raised if it is not a member of this
            collection.

        - required -- True if the action must always be specified at the
            command line. This is only meaningful for optional command-line
            arguments.

        - help -- The help string describing the argument.

        - metavar -- The name to be used for the option's argument with the
            help string. If None, the 'dest' value will be used as the name.
    Nc��||_||_||_||_||_||_||_||_|	|_|
|_	yr�
r�r&r��constr�r0rr�r�r�)r8r�r&r�rKr�r0rr�r�r�s           rrlzAction.__init__YsK��-�����	���
���
������	���� ��
���	���rc�L�gd�}|D�cgc]}|t||�f��c}Scc}w)NrJ��getattr�r8�namesr=s   rr5zAction._get_kwargsos+��
��9>�>���w�t�T�*�+�>�>��>��!c� �|jdSrJ)r�rDs rr�zAction.format_usage~s���"�"�1�%�%rc�*�ttd���)Nz.__call__() not defined)�NotImplementedErrorr�r8�parser�	namespace�valuesr�s     r�__call__zAction.__call__�s��!�!�$=�">�?�?r�NNNNNFNNr)r1rFrGrHrlr5r�rYrrrr
r
&s7��0�j���������,
?�&�@rr
c�:��eZdZdeeddef�fd�	Zdd�Zd�Z�xZS)rNFc	�b��g}	|D]>}
|	j|
�|
jd�s�&d|
ddz}
|	j|
��@dD].}t�|tus�t	j
|dd���0|turd}|turd}|turd}t�|�|	|d||||||�	�	y)
N�--�--no-rO)r0rr�zP{name!r} is deprecated as of Python 3.12 and will be removed in Python {remove}.)��)�remover)	r�r&r�r�r0rr�r�r�)r3�
startswith�locals�_deprecated_default�warnings�_deprecated�superrl)
r8r�r&r�r0rr�r�r��_option_stringsr��
field_name�	__class__s
            �rrlzBooleanOptionalAction.__init__�s������+�	6�M��"�"�=�1��'�'��-� '�-���*;� ;�
��&�&�}�5�	6�9�	$�J��x�
�#�+>�>��$�$��2�"�	$�	$��&�&��D��)�)��G��)�)��G�
���*���������	�		rc�p�||jvr(t||j|jd��yy)Nr^)r��setattrr&rbrUs     rrYzBooleanOptionalAction.__call__�s3���D�/�/�/��I�t�y�y�m�.F�.F�w�.O�*O�P�0rc�8�dj|j�S)Nz | )r7r�rDs rr�z"BooleanOptionalAction.format_usage�s���z�z�$�-�-�.�.rr)r1rFrGrdrlrYr��
__classcell__�rjs@rrr�s(����)�,���,�-�`Q�/rrc�8��eZdZ								d�fd�	Zdd�Z�xZS)�_StoreActionc���|dk(rtd��|�|tk7rtdtz��tt|�|||||||||	|
��
y)Nrz�nargs for store actions must be != 0; if you have nothing to store, actions such as store true or store const may be more appropriate� nargs must be %r to supply constrJ)r�rrgrqrl�r8r�r&r�rKr�r0rr�r�r�rjs           �rrlz_StoreAction.__init__�ss����A�:��K�L�
L����(�!2��?�(�J�K�K�
�l�D�*�)����������	+�
	rc�2�t||j|�yr)rlr&rUs     rrYz_StoreAction.__call__�s���	�4�9�9�f�-rrZr�r1rFrGrlrYrnros@rrqrq�s'���
���������:.rrqc�2��eZdZ					d�fd�	Zdd�Z�xZS)�_StoreConstActionc	�:��tt|�||d||||��y)Nr)r�r&r�rKr�r�r�)rgrxrl�	r8r�r&rKr�r�r�r�rjs	        �rrlz_StoreConstAction.__init__�s/���	���/�)�������	0�	rc�F�t||j|j�yr)rlr&rKrUs     rrYz_StoreConstAction.__call__�s���	�4�9�9�d�j�j�1r�NNFNNrrvros@rrxrx�s���
������"2rrxc�&��eZdZ			d�fd�	Z�xZS)�_StoreTrueActionc�8��tt|�||d|||��y)NT�r�r&rKr�r�r�)rgr~rl�r8r�r&r�r�r�rjs      �rrlz_StoreTrueAction.__init__�s,���	���.�)������
	/�	r)FFN�r1rFrGrlrnros@rr~r~�s���
����rr~c�&��eZdZ			d�fd�	Z�xZS)�_StoreFalseActionc�8��tt|�||d|||��y)NFr�)rgr�rlr�s      �rrlz_StoreFalseAction.__init__s,���	���/�)������
	0�	r)TFNr�ros@rr�r�s���
����rr�c�8��eZdZ								d�fd�	Zdd�Z�xZS)�
_AppendActionc���|dk(rtd��|�|tk7rtdtz��tt|�|||||||||	|
��
y)Nrz�nargs for append actions must be != 0; if arg strings are not supplying the value to append, the append const action may be more appropriatersrJ)r�rrgr�rlrts           �rrlz_AppendAction.__init__ss����A�:��O�P�
P����(�!2��?�(�J�K�K�
�m�T�+�)����������	,�
	rc��t||jd�}t|�}|j|�t	||j|�yr)rNr&rLr3rl�r8rVrWrXr�rCs      rrYz_AppendAction.__call__<�:���	�4�9�9�d�3���E�"��
���V���	�4�9�9�e�,rrZrrvros@rr�r�s'���
���������:-rr�c�2��eZdZ					d�fd�	Zdd�Z�xZS)�_AppendConstActionc
�<��tt|�||d|||||��y)Nr)r�r&r�rKr�r�r�r�)rgr�rlrzs	        �rrlz_AppendConstAction.__init__Es2���	� �$�0�)��������	1�	rc��t||jd�}t|�}|j|j�t||j|�yr)rNr&rLr3rKrlr�s      rrYz_AppendConstAction.__call__Ws>���	�4�9�9�d�3���E�"��
���T�Z�Z� ��	�4�9�9�e�,rr|rrvros@rr�r�Cs���
������$-rr�c�.��eZdZ			d�fd�	Zdd�Z�xZS)�_CountActionc�8��tt|�||d|||��y)Nr)r�r&r�r�r�r�)rgr�rlr�s      �rrlz_CountAction.__init__`s+���	�l�D�*�)������
	+�	rc�n�t||jd�}|�d}t||j|dz�y)Nrr )rNr&rl)r8rVrWrXr��counts      rrYz_CountAction.__call__ns2���	�4�9�9�d�3���=��E��	�4�9�9�e�a�i�0r)NFNrrvros@rr�r�^s���
����1rr�c�.��eZdZeedf�fd�	Zdd�Z�xZS)�_HelpActionNc�6��tt|�|||d|��y)Nr�r�r&r�r�r�)rgr�rl)r8r�r&r�r�rjs     �rrlz_HelpAction.__init__ws(���
	�k�4�)�)�����	*�	rc�D�|j�|j�yr)�
print_help�exitrUs     rrYz_HelpAction.__call__�s���������
rr�r1rFrGrrlrYrnros@rr�r�us����!��	
�rr�c�0��eZdZdeedf�fd�	Zdd�Z�xZS)�_VersionActionNc�^��|�td�}tt|�|||d|��||_y)Nz&show program's version number and exitrr�)rrgr�rl�version)r8r�r�r&r�r�rjs      �rrlz_VersionAction.__init__�sA����<��=�>�D�
�n�d�,�)�����	-�	���rc��|j}|�|j}|j�}|j|�|j|j	�t
j�|j�yr)r��_get_formatterr��_print_messager��_sys�stdoutr�)r8rVrWrXr�r�rus       rrYz_VersionAction.__call__�s[���,�,���?��n�n�G��)�)�+�	����7�#����i�3�3�5�t�{�{�C����
rrr�ros@rr�r��s�����!��� rr�c�R��eZdZGd�de�Zedddf�fd�	Zd�Zd�Zd	d�Z	�xZ
S)
�_SubParsersActionc���eZdZ�fd�Z�xZS)�&_SubParsersAction._ChoicesPseudoActionc���|x}}|r|ddj|�zz
}ttj|�}|j	g|||��y)Nr�r.)r�r&r�r�)r7rgr��_ChoicesPseudoActionrl)r8r=�aliasesr�r�r&�suprjs       �rrlz/_SubParsersAction._ChoicesPseudoAction.__init__�sU���!�!�G�d���7�T�Y�Y�w�%7�7�7���)�>�>��E�C��L�L���D�!(�
�
*rr�ros@rr�r��s
���	*�	*rr�FNc	���||_||_i|_g|_tt
|�||t|j|||��y)N)r�r&r�rr�r�r�)�_prog_prefix�
_parser_class�_name_parser_map�_choices_actionsrgr�rlr)	r8r�rg�parser_classr&r�r�r�rjs	        �rrlz_SubParsersAction.__init__�sU���!���)��� "��� "���
���/�)����)�)����	0�	rc��|jd��|j�d|��|d<|jdd�}||jvrt	|td�|z��|D](}||jvs�t	|td�|z��d|vr?|jd�}|j
|||�}|jj|�|jdi|��}||j|<|D]}||j|<�|S)Nrgr�r�rzconflicting subparser: %szconflicting subparser alias: %sr�)
r�r�r�r�rrr�r�r3r�)r8r=�kwargsr��aliasr��
choice_actionrVs        r�
add_parserz_SubParsersAction.add_parser�s(���:�:�f��%�(,�(9�(9�4�@�F�6�N��*�*�Y��+���4�(�(�(���a�(C�&D�t�&K�L�L��	H�E���-�-�-�#��!�=�>��F�H�H�	H��V���:�:�f�%�D� �5�5�d�G�T�J�M��!�!�(�(��7�$��#�#�-�f�-��&,����d�#��	2�E�+1�D�!�!�%�(�	2��
rc��|jSr)r�rDs rrz!_SubParsersAction._get_subactions�s���$�$�$rc��|d}|dd}|jturt||j|�	|j|}|j|d�\}	}t|	�j�D]\}
}t||
|��|r?t|�jtg�t|t�j|�yy#t$r9|dj|j�d�}t
d�|z}t||��wxYw)Nrr r.)�parser_namerz5unknown parser %(parser_name)r (choices: %(choices)s))r&rrlr��KeyErrorr7rr�parse_known_argsrrC�
setdefault�_UNRECOGNIZED_ARGS_ATTRrNr�)r8rVrWrXr�r�r:r�msg�subnamespace�keyr>s            rrYz_SubParsersAction.__call__�s���Q�i���Q�R�j���9�9�H�$��I�t�y�y�+�6�	+��*�*�;�7�F�%+�$;�$;�K��$N�!��k��|�,�2�2�4�	+�J�C���I�s�E�*�	+����O�&�&�'>��C��I�6�7�>�>�{�K���#�	+�#.�#�y�y��)>�)>�?�A�D��K�L�t�S�C���c�*�*�		+�s�C	�	ADr)r1rFrGr
r�rrlr�rrYrnros@rr�r��s2���*�v�*������.�<%�Lrr�c��eZdZdd�Zy)�
_ExtendActionNc��t||jd�}t|�}|j|�t	||j|�yr)rNr&rLr�rlr�s      rrYz_ExtendAction.__call__	r�rr)r1rFrGrYrrrr�r�s��-rr�c�$�eZdZdZdd�Zd�Zd�Zy)ra�Factory for creating file object types

    Instances of FileType are typically passed as type= arguments to the
    ArgumentParser add_argument() method.

    Keyword Arguments:
        - mode -- A string indicating how the file is to be opened. Accepts the
            same values as the builtin open() function.
        - bufsize -- The file's desired buffer size. Accepts the same values as
            the builtin open() function.
        - encoding -- The file's encoding. Accepts the same values as the
            builtin open() function.
        - errors -- A string indicating how encoding and decoding errors are to
            be handled. Accepts the same value as the builtin open() function.
    Nc�<�||_||_||_||_yr)�_mode�_bufsize�	_encoding�_errors)r8�mode�bufsize�encoding�errorss     rrlzFileType.__init__$s����
���
�!�����rc�F��|dk(r�d�jvr8d�jvrtjjStjSt	�fd�dD��r8d�jvrtj
jStj
St
d��jz}t|��	t|�j�j�j�j�S#t$r#}||d�}t
d�}t||z��d}~wwxYw)	N�-�r�bc3�:�K�|]}|�jv���y�wr)r�)r.rr8s  �rr/z$FileType.__call__.<locals>.<genexpr>/s�����4��Q�$�*�*�_�4�s��waxzargument "-" with mode %r)�filename�errorz$can't open '%(filename)s': %(error)s)r�r��stdin�buffer�anyr�rr�r�r�r�r��OSErrorr)r8�stringr��errs`     rrYzFileType.__call__*s�����S�=��d�j�j� �,/�4�:�:�,=�t�z�z�(�(�M�4�:�:�M��4�e�4�4�-0�D�J�J�->�t�{�{�)�)�O�D�K�K�O��3�4�t�z�z�A�� ��o�%�	4����
�
�D�M�M�4�>�>����&�
&���	4� &��3�D��>�?�G�#�G�d�N�3�3��	4�s�=6C4�4	D �=D�D c
�L�|j|jf}d|jfd|jfg}dj	|D�cgc]}|dk7s�	t|���c}|D��cgc]\}}|�|�d|����c}}z�}t
|�j�d|�d�Scc}wcc}}w)Nr�r�r.r�r,r-r/)r�r�r�r�r7r4r0r1)r8rr�r<�kw�args_strs      rr?zFileType.__repr__>s����z�z�4�=�=�(���t�~�~�.��4�<�<�0H�I���9�9�4�E�C�3�"�9�d�3�i�E�AG�2�g�b�#�!$��*,�S�1�2�2�3�� ��:�.�.��9�9��F��2s�
B�
B�#B )r�r�NN)r1rFrGrHrlrYr?rrrrrs��� �4�(:rrc�"�eZdZdZd�Zd�Zd�Zy)rz�Simple object for storing attributes.

    Implements equality by attribute names and values, and provides a simple
    string representation.
    c�2�|D]}t||||��yr)rl)r8r�r=s   rrlzNamespace.__init__Qs!���	.�D��D�$��t��-�	.rc�\�t|t�stSt|�t|�k(Sr)rr�NotImplementedr)r8�others  r�__eq__zNamespace.__eq__Us%���%��+�!�!��D�z�T�%�[�(�(rc��||jvSr)rB)r8r�s  r�__contains__zNamespace.__contains__Zs���d�m�m�#�#rN)r1rFrGrHrlr�r�rrrrrJs���.�)�
$rrc���eZdZ�fd�Zd�Zdd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zdd�Zd�Zd�Zd�Zd�Z�xZS)�_ActionsContainerc�@��tt|��||_||_||_||_i|_|jddt�|jddt�|jddt�|jddt�|jddt�|jddt�|jddt�|jddt�|jdd	t �|jdd
t"�|jddt$�|jddt&�|j)�g|_i|_g|_g|_i|_t5j6d
�|_g|_y)Nr��store�store_const�
store_true�store_falser3�append_constr�r�r��parsersr�z^-\d+$|^-\d*\.\d+$)rgr�rl�description�argument_default�prefix_chars�conflict_handler�_registries�registerrqrxr~r�r�r�r�r�r�r�r��_get_handler�_actions�_option_string_actions�_action_groups�_mutually_exclusive_groups�	_defaultsrbrc�_negative_number_matcher�_has_negative_number_optionals)r8r�r�r�r�rjs     �rrlz_ActionsContainer.__init__`s\���
	���/�1�&��� 0���(��� 0������	
�
�
�h��l�3��
�
�h���6��
�
�h�
�/@�A��
�
�h��.>�?��
�
�h�
�/@�A��
�
�h��-�8��
�
�h��0B�C��
�
�h���6��
�
�h���4��
�
�h�	�>�:��
�
�h�	�+<�=��
�
�h��-�8�	
������
�&(��#�!���*,��'����),���4I�(J��%�/1��+rc�F�|jj|i�}|||<yr)r�r�)r8�
registry_namer>r*�registrys     rr�z_ActionsContainer.register�s#���#�#�.�.�}�b�A�� ���rc�@�|j|j||�Sr)r�r�)r8rr>r�s    r�
_registry_getz_ActionsContainer._registry_get�s �����
�.�2�2�5�'�B�Brc��|jj|�|jD]%}|j|vs�||j|_�'yr)r��updater�r&r�)r8r�r�s   r�set_defaultsz_ActionsContainer.set_defaults�sE�������f�%��m�m�	5�F��{�{�f�$�!'����!4���	5rc��|jD],}|j|k(s�|j�� |jcS|jj	|d�Sr)r�r&r�r�r�)r8r&r�s   r�get_defaultz_ActionsContainer.get_default�sM���m�m�	&�F��{�{�d�"�v�~�~�'A��~�~�%�	&��~�~�!�!�$��-�-rc��|j}|rt|�dk(r.|dd|vr$|rd|vrtd��|j|i|��}n|j|i|��}d|vrA|d}||j
vr|j
||d<n|j�|j|d<|j|�}t|�std|�d���|di|��}|jd	|j|j�}t|�st|�d
���|turt|�d���t|d�r!	|j�j|d�|j!|�S#t$rtd
��wxYw)z�
        add_argument(dest, ..., name=value, ...)
        add_argument(option_string, option_string, ..., name=value, ...)
        r rr&z+dest supplied twice for positional argumentr�Nzunknown action "�"r0z is not callablez: is a FileType class object, instance of it must be passedr�z,length of metavar tuple does not match nargsr)r�r�r��_get_positional_kwargs�_get_optional_kwargsr�r��_pop_action_class�callablerr0rrr�r�r
�_add_action)r8rr��charsr&�action_classr��	type_funcs        rr�z_ActionsContainer.add_argument�s����!�!���s�4�y�A�~�$�q�'�!�*�E�*A���&�(� �!N�O�O�0�T�0�0�$�A�&�A�F�/�T�.�.��?��?�F��F�"��&�>�D��t�~�~�%�$(�N�N�4�$8��y�!��&�&�2�$(�$9�$9��y�!��-�-�f�5����%��l�D�E�E��'��'���&�&�v�v�{�{�F�K�K�H�	��	�"��Y�@�A�A��� ��2;�>�?�
?��4�)�*�
Q��#�#�%�2�2�6�4�@�����'�'���
Q� �!O�P�P�
Q�s�8 E)�)E>c�Z�t|g|��i|��}|jj|�|Sr)�_ArgumentGroupr�r3)r8rr�r�s    r�add_argument_groupz$_ActionsContainer.add_argument_group�s/���t�5�d�5�f�5�����"�"�5�)��rc�T�t|fi|��}|jj|�|Sr)�_MutuallyExclusiveGroupr�r3)r8r�r�s   r�add_mutually_exclusive_groupz._ActionsContainer.add_mutually_exclusive_group�s*��'��7��7���'�'�.�.�u�5��rc�V�|j|�|jj|�||_|jD]}||j
|<�|jD]F}|jj|�s�|jr�,|jjd��H|S)NT)	�_check_conflictr�r3�	containerr�r�r��matchr�)r8r�r�s   rrz_ActionsContainer._add_action�s������V�$�	
�
�
���V�$����$�2�2�	@�M�9?�D�'�'�
�6�	@�$�2�2�	E�M��,�,�2�2�=�A��:�:��7�7�>�>�t�D�	E��
rc�:�|jj|�yr)r�rar#s  r�_remove_actionz _ActionsContainer._remove_actions���
�
���V�$rc��i}|jD]B}|j|vr#td�}t||jz��|||j<�Di}|jD]r}|j|vr?|j	|j|j
|j��||j<|jD]}||j||<��t|jD]4}|j|j��}|jD]}|||<�	�6|jD]#}|j||�j|��%y)Nz.cannot merge actions - two groups are named %r)�titler�r�)r�)r�r!rr�rr�r�r�r�rr�r�r�r)r8r�title_group_mapr�r��	group_mapr��mutex_groups        r�_add_container_actionsz(_ActionsContainer._add_container_actionssi�����(�(�	1�E��{�{�o�-��H�I�� �����!4�5�5�+0�O�E�K�K�(�		1��	��-�-�	A�E��{�{�/�1�/3�/F�/F��+�+� %� 1� 1�%*�%;�%;�0G�0=�����,� �.�.�
A��$3�E�K�K�$@�	�&�!�
A�	A�"�9�9�	0�E��;�;����<�)�K� �.�.�
0��$/�	�&�!�
0�	0� �(�(�	<�F��M�M�&�$�'�3�3�F�;�	<rc���d|vrtd�}t|��|jd�ttfvrd|d<|jd�tk(r	d|vrd|d<t||g��S)Nr�z1'required' is an invalid argument for positionalsr�Tr��r&r�)rr
r�rrr})r8r&r�r�s    rrz(_ActionsContainer._get_positional_kwargs/st������G�H�C��C�.� ��:�:�g��x��&>�>�!%�F�:���:�:�g��,�.�9�F�3J�!%�F�:���F��b�9�9rc��g}g}|D]~}|d|jvr(||jd�}td�}t||z��|j|�t	|�dkDs�\|d|jvs�n|j|���|jdd�}|�U|r|d}n|d}|j
|j�}|std�}t|z��|jdd�}t|||�	�S)
Nr)�optionr�zNinvalid option string %(option)r: must start with a character %(prefix_chars)rr r&z%dest= is required for options like %rr�rr')	r�rr�r3r�r��lstrip�replacer})	r8rr�r��long_option_stringsr�r�r&�dest_option_strings	         rr
z&_ActionsContainer._get_optional_kwargs?s$���� ��!�	:�M� ��#�t�'8�'8�8�"/�(,�(9�(9�;���G�H�� ��t��,�,�
�!�!�-�0��=�!�A�%�-��*:�d�>O�>O�*O�#�*�*�=�9�	:��z�z�&�$�'���<�"�%8��%;�"�%3�A�%6�"�%�,�,�T�->�->�?�D���?�@�� ��}�!4�5�5��<�<��S�)�D��F��n�E�Erc�L�|jd|�}|jd||�S)Nr�)r�r)r8r�r�r�s    rrz#_ActionsContainer._pop_action_classas'�����H�g�.���!�!�(�F�F�;�;rc��d|jz}	t||�S#t$r$td�}t	||jz��wxYw)Nz_handle_conflict_%sz%invalid conflict_resolution value: %r)r�rNrrr�)r8�handler_func_namer�s   rr�z_ActionsContainer._get_handleresV��1�D�4I�4I�I��	:��4�!2�3�3���	:��;�<�C��S�4�#8�#8�8�9�9�	:�s	��-A
c���g}|jD]3}||jvs�|j|}|j||f��5|r|j�}|||�yyr)r�r�r3r�)r8r��confl_optionalsr��confl_optionalr�s      rrz!_ActionsContainer._check_conflictnst����#�2�2�	H�M��� ;� ;�;�!%�!<�!<�]�!K���&�&�
�~�'F�G�	H��#�0�0�2���V�_�5�rc��tddt|��}dj|D��cgc]\}}|��	c}}�}t||z��cc}}w)Nzconflicting option string: %szconflicting option strings: %sr.)rr�r7r)r8r��conflicting_actionsrr��conflict_strings      r�_handle_conflict_errorz(_ActionsContainer._handle_conflict_error|s^���:�;��2�3�5���)�)�(;�%=�)>���&3�%=�>���F�G�o�$=�>�>��%=s�A

c���|D]d\}}|jj|�|jj|d�|jr�J|jj|��fyr)r�rar�r�rr)r8r�r5r�s    r�_handle_conflict_resolvez*_ActionsContainer._handle_conflict_resolve�sc��&9�		8�!�M�6�
�!�!�(�(��7��'�'�+�+�M�4�@��(�(�� � �/�/��7�		8rr)r1rFrGrlr�rrr	r�rrrrr%rr
rr�rr7r9rnros@rr�r�^sc���01�j!�C�5�.�1(�f�
�
�*%�&<�P:�  F�D<�:�6�?�8rr�c�>��eZdZd�fd�	Z�fd�Z�fd�Z�fd�Z�xZS)rc���|j}|d|j�|d|j�|d|j�tt
|�}|dd|i|��||_g|_|j|_	|j|_
|j|_|j|_|j|_
|j|_y)Nr�r�r�r�r)r�r�r�r�rgrrlr!r�r�r�r�r�r�r�)r8rr!r�r�r�
super_initrjs       �rrlz_ArgumentGroup.__init__�s�����"�"���!�9�#=�#=�>��~�y�5�5�6��!�9�#=�#=�>��>�4�9�
��5�{�5�f�5���
� ���%�0�0���!�*�*��
�&/�&F�&F��#�"�,�,����4�4�	
�+�*3�*N�*N��'rc�d��tt|�|�}|jj	|�|Sr)rgrrr�r3�r8r�rjs  �rrz_ArgumentGroup._add_action�s-����~�t�8��@�����"�"�6�*��
rc�b��tt|�|�|jj	|�yr)rgrrr�rar>s  �rrz_ArgumentGroup._remove_action�s&���
�n�d�2�6�:����"�"�6�*rc�Z��tjdtd��t�|�|i|��S)Nz&Nesting argument groups is deprecated.rO��category�
stacklevel)re�warn�DeprecationWarningrgr�r8rr�rjs   �rrz!_ArgumentGroup.add_argument_group�s/����
�
�4�'��	
�
�w�)�4�:�6�:�:r�NN)r1rFrGrlrrrrnros@rrr�s���O�,�
+�;�;rrc�6��eZdZd�fd�	Zd�Zd�Z�fd�Z�xZS)rc�H��tt|�|�||_||_yr)rgrrlr��
_container)r8rr�rjs   �rrlz _MutuallyExclusiveGroup.__init__�s!���
�%�t�5�i�@� ��
�#��rc��|jrtd�}t|��|jj	|�}|j
j
|�|S)Nz-mutually exclusive arguments must be optional)r�rr�rJrr�r3)r8r�r�s   rrz#_MutuallyExclusiveGroup._add_action�sK���?�?��C�D�C��S�/�!����,�,�V�4�����"�"�6�*��
rc�p�|jj|�|jj|�yr)rJrr�rar#s  rrz&_MutuallyExclusiveGroup._remove_action�s(�����&�&�v�.����"�"�6�*rc�Z��tjdtd��t�|�|i|��S)Nz0Nesting mutually exclusive groups is deprecated.rOrA)rerDrErgrrFs   �rrz4_MutuallyExclusiveGroup.add_mutually_exclusive_group�s/����
�
�>�'��	
�
�w�3�T�D�V�D�Dr)F)r1rFrGrlrrrrnros@rrr�s���$�
�+�E�Errc
���eZdZdZddddgedddddddf
�fd�	Zd�Zd�Zd	�Zd
�Z	d�Z
d#d�Zd#d
�Zd�Z
d�Zd�Zd�Zd�Zd�Zd�Zd�Zd#d�Zd#d�Zd�Zd�Zd�Zd�Zd�Zd�Zd$d�Zd$d�Zd$d �Zd%d!�Z d"�Z!�xZ"S)&raKObject for parsing command line strings into Python objects.

    Keyword Arguments:
        - prog -- The name of the program (default:
            ``os.path.basename(sys.argv[0])``)
        - usage -- A usage message (default: auto-generated from arguments)
        - description -- A description of what the program does
        - epilog -- Text following the argument descriptions
        - parents -- Parsers whose arguments should be copied into this one
        - formatter_class -- HelpFormatter class for printing help messages
        - prefix_chars -- Characters that prefix optional arguments
        - fromfile_prefix_chars -- Characters that prefix files containing
            additional arguments
        - argument_default -- The default value for all arguments
        - conflict_handler -- String indicating how to handle conflicts
        - add_help -- Add a -h/-help option
        - allow_abbrev -- Allow long options to be abbreviated unambiguously
        - exit_on_error -- Determines whether or not ArgumentParser exits with
            error info when an error occurs
    Nr�r�Tc	����tt|�
}||||	|
��|�0tjjtjd�}||_||_	||_
||_||_||_
||_|
|_|j }|t#d��|_|t#d��|_d|_d�}|j+dd|�d|vrdn|d}|jr,|j-|dz|d	zd
zd
t.t#d���|D];}|j1|�	|j2}|j2j5|��=y#t6$rY�JwxYw)
N)r�r�r�r�rzpositional arguments�optionsc��|Srr)r�s r�identityz)ArgumentParser.__init__.<locals>.identitys���Mrr0r��hrOr�zshow this help message and exit)r�r�r�)rgrrl�_os�path�basenamer��argvrgr��epilog�formatter_class�fromfile_prefix_chars�add_help�allow_abbrev�
exit_on_errorrr�_positionals�
_optionals�_subparsersr�r�rr%r�rr)r8rgr�r�rX�parentsrYr�rZr�r�r[r\r]�	superinit�	add_grouprR�default_prefixrv�defaultsrjs                    �rrlzArgumentParser.__init__�su����.�$�8�	��k�+�#3�#3�	5��<��8�8�$�$�T�Y�Y�q�\�2�D���	���
����.���%:��"� ��
�(���*����+�+�	�%�a�(>�&?�@���#�A�i�L�1������	��
�
�f�d�H�-�!$�|� 3���a����=�=�����s�"�N�1�$4�V�$;��x��8�9�
�
;��	0�F��'�'��/�
0�!�+�+�����%�%�h�/�	0��"�
��
�s�5E�	E+�*E+c�L�gd�}|D�cgc]}|t||�f��c}Scc}w)N)rgr�r�rYr�r[rMrOs   rr5zArgumentParser._get_kwargs2s+��
��9>�>���w�t�T�*�+�>�>��>rQc��|j�|jtd��|jdt	|��d|vsd|vrNt|jdd��}t|jdd��}|j
||�|_n|j|_|jd��k|j�}|j�}|j}|j|j||d�|j�j�|d<|j!|d�}|d
d	gi|��}|jj#|�|S)Nz(cannot have multiple subparser argumentsr�r!r��subcommandsrgryr�r�r)r`r�rr�r0r�rr^r�r��_get_positional_actionsr�r�r�r�r�rr)	r8r�r!r�rur�r��
parsers_classr�s	         r�add_subparserszArgumentParser.add_subparsers@s>�����'��J�J�q�C�D�E�	���.�$�t�*�5��f��
�� 7��f�j�j��-�8�9�E��F�J�J�}�d�;�<�K�#�6�6�u�k�J�D��#�0�0�D���:�:�f��%��+�+�-�I��6�6�8�K��4�4�F�����
�
�K���D�&�2�2�4�:�:�<�F�6�N��.�.�v�y�A�
��;�b�;�F�;�����$�$�V�,��
rc��|jr|jj|�|S|jj|�|Sr)r�r_rr^r#s  rrzArgumentParser._add_action_s?��� � ��O�O�'�'��/��
�
���)�)�&�1��
rc�X�|jD�cgc]}|jr|��c}Scc}wr�r�r�r#s  r�_get_optional_actionsz$ArgumentParser._get_optional_actionsfs/��"�m�m�*���(�(��*�	*��*��'c�X�|jD�cgc]}|js|��c}Scc}wrrnr#s  rriz&ArgumentParser._get_positional_actionsks/��"�m�m�.���,�,��.�	.��.rpc��|j||�\}}|r.td�}|j|dj|�z�|S�Nzunrecognized arguments: %sr�)r�rr�r7�r8rrWrWr�s     r�
parse_argszArgumentParser.parse_argsssD���*�*�4��;�
��d���0�1�C��J�J�s�S�X�X�d�^�+�,��rc��|�tjdd}nt|�}|�
t�}|jD]`}|j
tus�t||j
�r�-|jtus�@t||j
|j��b|jD])}t||�r�t|||j|��+|jr	|j||�\}}n|j||�\}}t|t �r/|j#t%|t ��t'|t �||fS#t$r$}|jt|��Yd}~�kd}~wwxYwr)r�rWrArr�r&rrr�rlr�r]�_parse_known_argsrr�rr�r�rN�delattr)r8rrWr�r&�errs      rr�zArgumentParser.parse_known_argszsL���<��9�9�Q�R�=�D���:�D���!��I��m�m�	H�F��{�{�(�*��y�&�+�+�6��~�~�X�5��	�6�;�;����G�		H��N�N�	?�D��9�d�+��	�4�����)=�>�	?�
���
%�"&�"8�"8��y�"I��	�4�#�4�4�T�9�E�O�I�t��9�5�6��K�K��	�+B�C�D��I�6�7��$����!�
%��
�
�3�s�8�$�$��
%�s�"E�	E=�E8�8E=c	�X��������� �!�"��j��j���i��jD]h}|j}t	|j�D]B\}}�j|g�}|j
|d|�|j
||dzd��D�ji�g}t��}	t	|	�D]b\}}
|
dk(r*|jd�|	D]}
|jd���5�j|
�}|�d}n|�|<d}|j|��ddj|��t�� t��!d��� �!�fd�	�"������"fd�}
�j�������"fd	�}g�d
}�rt��}nd}||kr_t�D�cgc]	}||k\r|��c}�}||k7r||�}||kDr|}�8|}|�vr�||}�j
|�|}|
|�}||kr�_||�}�j
�|d�g}�jD]�}|� vs�|j r|jt#|���/|j$��<t'|j$t(�s�Wt+�|j,�s�n|j$t/�|j,�us��t1�|j,�j3||j$����|r,�j5t7d�d
j|�z��jD]�}|j s�|jD]}|�!vs��&|jD�cgc]}|j8t:urt#|���!}}t7d�}�j5|dj|�z�����fScc}wcc}w)Nr r]r��A�Oryc�2���	j|��j||�}||jurQ�
j|��j|g�D]+}|�
vs�t	d�}t|�}t
|||z��|tur|��||�yy)Nznot allowed with argument %s)r��_get_valuesr�r�rrArr)r��argument_stringsr��argument_values�conflict_actionr��action_name�action_conflictsrW�seen_actions�seen_non_default_actionsr8s       �����r�take_actionz5ArgumentParser._parse_known_args.<locals>.take_action�s�������V�$�"�.�.�v�7G�H�O�
�f�n�n�4�(�,�,�V�4�'7�';�';�F�B�'G�G�O�&�*B�B�� >�?��&6��&G��+�F�C�+�4E�F�F�	G��h�.��t�Y���G�/rc����|}|\}}}}�j}g}	|��j�|�|dzS|��||d�}�j}	|dk(r�|d|	vr�|dk7r�|s|d|	vrtd�}
t	||
|z��|j|g|f�|d}||dz}�j
}||vr$||}|dd}|sdx}}n�|ddk(rd}|dd}n�d}n��j||z�|dz}
np|dk(r|dz}
|g}|j|||f�nNtd�}
t	||
|z��|dz}�|d}|||�}||z}
�||
}|j|||f�n��E|sJ�|D]\}}}�|||��|
S)Nr r{rryzignored explicit argument %rr,)�_match_argumentr3r�rrr�)�start_index�option_tupler�r��sep�explicit_arg�match_argument�
action_tuples�	arg_countrr��char�
optionals_map�stoprr��selected_patternsr:�arg_strings_pattern�extras�option_string_indicesr8r�s                 ������r�consume_optionalz:ArgumentParser._parse_known_args.<locals>.consume_optional�s9���1��=�L�7C�4�F�M�3��"�1�1�N��M���>��M�M�+�k�":�;�&��?�*� �+� .�v�s� ;�I�
!�-�-�E�!�Q��)�!�,�E�9�(�B�.��,�q�/�U�":�"#�$B�"C�C�"/���l�8J�"K�K�%�,�,�f�b�-�-H�I�,�Q�/��(,�|�A��(>�
�(,�(C�(C�
�(�M�9�%2�=�%A�F�+7���+;�L�#/�59� 9��l�!-�a��C�!7�&)��/;�A�B�/?��&(��"�M�M�$��*=�>�#.��?�D�!�#�a��*�Q��� ,�~��%�,�,�f�d�M�-J�K��
 � >�?��+�F�C�,�4F�G�G�(�!�O�E�(;�E�F�(C�%� .�v�7H� I�I� �9�,�D�&�u�T�2�D�!�(�(�&�$�
�)F�G��E�L!� �=�/<�
9�+���m��F�D�-�8�
9��Krc����
j}�|d}|�	|�}t�	|�D]\}}�|||z}||z
}�||���	t|�d�	dd|Sr)�_match_arguments_partial�zipr�)r��
match_partial�selected_pattern�
arg_countsr�r�rr:r�r�r8r�s       �����r�consume_positionalsz=ArgumentParser._parse_known_args.<locals>.consume_positionals>s���� �9�9�M�2�;�<�@��&�{�4D�E�J�&)��j�%A�
*�!��	�"�;��i�0G�H���y�(���F�D�)�
*�)��Z��)9�:�K��N��rrr�z(the following arguments are required: %sr.z#one of the arguments %s is requiredr�r)rZ�_read_args_from_filesr�r�r�r�r��iterr3�_parse_optionalr7r�rirYrXr�r�rAr�rrrr&rNrl�
_get_valuer�rr�r)#r8r:rWr$r�r��mutex_action�	conflicts�arg_string_pattern_parts�arg_strings_iter�
arg_stringr��patternr�r�r��max_option_string_indexr��next_option_string_index�positionals_end_index�strings�
stop_index�required_actionsr�r�rPr�r�r�r�r�r�r�r�r�s#```                        @@@@@@@@rrwz ArgumentParser._parse_known_args�s�����%�%�1��4�4�[�A�K����:�:�	8�K�'�6�6�M�#,�[�-G�-G�#H�
8���<�,�7�7��b�I�	�� � ��r��!2�3�� � ��q�1�u�v�!6�7�
8�	8�!#��#%� ���,��&�'7�8�	9�M�A�z��T�!�(�/�/��4�"2�9�J�,�3�3�C�8�9� $�3�3�J�?���'�!�G�/;�)�!�,�!�G�(�/�/��8�#	9�(!�g�g�&>�?���u��#&�5� �	H�	H�*S	�S	�n�2�2�4��	�	�(���� �&)�*?�&@�#�&(�#��4�4�(+�2�,)���K�'��,)�(*�$��6�6�(;�K�(H�%�)�;�6�"7�K��"7�K��"7�7�%�k�2J�K���
�
�g�&�6��+�;�7�K�5�4�4�:)��5�
�	�
�
�k�*�+�.�/����m�m�	I�F��\�)��?�?�$�+�+�,<�V�,D�E����2�"�6�>�>�3�7��	�6�;�;�7����'�)�V�[�[�*I�I��	�6�;�;� $������� G�I�	I� ��J�J�q�C�D��y�y�!1�2�3�
4��4�4�	6�E��~�~�#�2�2�
6�F��!9�9��
6�,1�+?�+?�=�!'� &���8� ;�.�f�5�=�E�=��A�B�C��J�J�s�S�X�X�e�_�4�5�	6��&� � ��M,)��~=s�N"�$N'c�6�g}|D]�}|r|d|jvr|j|��(	t|ddtj�tj
���5}g}|j
�j�D])}|j|�D]}|j|���+|j|�}|j|�ddd���|S#1swY�
xYw#t$r%}|jt|��Yd}~��d}~wwxYw)Nrr )r�r�)rZr3r�r��getfilesystemencoding�getfilesystemencodeerrors�readr1�convert_arg_line_to_argsr�r�r�r�r)r8r:�new_arg_stringsr��	args_file�arg_liner<rys        rr�z$ArgumentParser._read_args_from_files�s����%�	)�J���A��d�6P�6P�!P��&�&�z�2�)��j���n�'+�'A�'A�'C�%)�%C�%C�%E�G�<�JS�&(��(1���(8�(C�(C�(E�8�H�'+�'D�'D�X�'N�8�� +� 2� 2�3� 7�8�8�'+�&@�&@��&M��'�.�.�{�;�<��	)�,��<�<���)��J�J�s�3�x�(�(��)�s0�5C*�#A/C�C*�C'	�#C*�*	D�3D�Dc��|gSrr)r8r�s  rr�z'ArgumentParser.convert_arg_line_to_args�s
���z�rc�x�|j|�}tj||�}|�xdtd�ttd�t
td�i}|j
|j�}|�$tdd|j�|jz}t||��t|jd��S)Nzexpected one argumentzexpected at most one argumentzexpected at least one argumentzexpected %s argumentzexpected %s argumentsr )�_get_nargs_patternrbrrrrr�r�rrr�r�)r8r�r��
nargs_patternr�nargs_errorsr�s       rr�zArgumentParser._match_argument�s����/�/��7�
��	�	�-�)<�=���=��a�/�0��!�;�<��Q�?�@��L�
�"�"�6�<�<�0�C��{��5�6�%�|�|�-�/5�|�|�<�� ���,�,��5�;�;�q�>�"�"rc	�\�g}tt|�dd�D]�}|d|}dj|D�cgc]}|j|���c}�}t	j
||�}|��O|j
|j�D�	cgc]
}	t|	���c}	�|S|Scc}wcc}	w)Nrr�ry)r�r�r7r�rbrr�r�)
r8r�r�rr��
actions_slicer�r�rr�s
          rr�z'ArgumentParser._match_arguments_partial�s������s�7�|�Q��+�	�A�#�B�Q�K�M��g�g�-:�<�#)� $�6�6�v�>�<�=�G��I�I�g�':�;�E�� ��
�
�����H�v�s�6�{�H�I���
�	��
��<��Is�B$
�B)
c�~�|sy|d|jvry||jvr|j|}||ddfSt|�dk(ry|jd�\}}}|r#||jvr|j|}||||fS|j	|�}t|�dkDrOdj|D����cgc]	\}}}}|��c}}}}�}||d�}t
d�}	|j|	|z�nt|�dk(r|\}
|
S|jj|�r
|jsyd|vryd|ddfScc}}}}w)Nrr r,r.)r)�matchesz4ambiguous option: %(option)s could match %(matches)sr�)r�r�r��	partition�_get_option_tuplesr7rr�r�rr�)r8r�r�r�r�r��
option_tuplesrPrr�r�s           rr�zArgumentParser._parse_optional�s������!�}�� 1� 1�1����4�4�4��0�0��<�F��:�t�T�1�1��z�?�a���,6�+?�+?��+D�(�
�s�L��=�D�$?�$?�?��0�0��?�F��=�#�|�;�;��/�/�
�;�
��}���!��i�i�@M�!O�!O�<�F�M�3��"/�!O�P�G�(�W�=�D��J�K�C��J�J�s�T�z�"���
�1�
$�)�M�L���
�(�(�.�.�z�:��6�6���*����Z��t�+�+��3!Os�3D7c�~�g}|j}|d|vry|d|vrr|jrd|jd�\}}}|sdx}}|jD]:}|j	|�s�|j|}||||f}|j|��<|S|d|vr�|d|vr�|}|dd}	|dd}
|jD]f}||	k(r'|j|}||d|
f}|j|��/|j	|�s�A|j|}||ddf}|j|��h|S|j
td�|z�|S)Nrr r,rOryzunexpected option string: %s)r�r\r�r�rbr3r�r)r8r�rr�
option_prefixr�r�r�r��short_option_prefix�short_explicit_args           rr�z!ArgumentParser._get_option_tuples 	s������!�!�����u�$��q�)9�U�)B�� � �3@�3J�3J�3�3O�0�
�s�L��)-�-�C�,�%)�%@�%@�+�M�$�/�/�
�>�!%�!<�!<�]�!K��$�m�S�,�F���
�
�c�*�	+�:�
�)�1�
��
&�=��+;�5�+H�)�M�"/���"3��!.�q�r�!2��!%�!<�!<�
'�
� �$7�7�!�8�8��G�F� �-��5G�G�C��M�M�#�&�"�-�-�m�<�!�8�8��G�F� �-��t�;�C��M�M�#�&�
'��
�
�J�J�q�7�8�=�H�I��
rc�F�|j}|�d}n_|tk(rd}nS|tk(rd}nG|tk(rd}n;|tk(rd}n/|t
k(rd}n#|tk(rd}ndd	jd
|z�z}|jr$|jd	d�}|jdd�}|S)
Nz(-*A-*)z(-*A?-*)z	(-*[A-]*)z
(-*A[A-]*)z([-AO]*)z(-*A[-AO]*)z(-*-*)z(-*%s-*)z-*r{ryr�)
r�rrrrrrr7r�r+)r8r�r�r�s    rr�z!ArgumentParser._get_nargs_patternJ	s��������=�%�M��h�
�&�M��l�
"�'�M��k�
!�(�M��i�
�&�M��f�_�)�M��h�
�$�M�'����3��;�)?�?�M�� � �)�1�1�$��;�M�)�1�1�#�r�:�M��rc��|j||�\}}|r.td�}|j|dj|�z�|Srs)�parse_known_intermixed_argsrr�r7rts     r�parse_intermixed_argsz$ArgumentParser.parse_intermixed_args{	sD���5�5�d�I�F�
��d���0�1�C��J�J�s�S�X�X�d�^�+�,��rc���|j�}|D�cgc]}|jttfvr|��}}|rt	d|djz��|j
D��cgc]#}|jD]}||vr|j���%c}}rt	d��	|j}	|j�|j�dd|_|D]:}|j|_
t|_|j|_
t|_�<|j||�\}}|D]g}t||j�s�t!||j�gk(s�4ddlm}	|	d|j�d|���t'||j��i	|D]$}|j|_|j|_�&	|j)�}
	|
D]}|j*|_d|_�|j
D]}|j*|_d|_�|j||�\}}|
D]}|j,|_�|j
D]}|j,|_�	||_||fScc}wcc}}w#|D]$}|j|_|j|_�&wxYw#|
D]}|j,|_�|j
D]}|j,|_�wxYw#|_wxYw)	Nz3parse_intermixed_args: positional arg with nargs=%srz;parse_intermixed_args: positional in mutuallyExclusiveGroup�)rDzDo not expect z in F)rir�rrr
r�r�r&r�r��
save_nargsrr��save_defaultr�rrNrerDrxror��
save_required)r8rrWr�r��ar��
save_usage�remaining_argsrDr�r�s            rr�z*ArgumentParser.parse_known_intermixed_args�	s���2�2�4��"-�
5������� 3�3��
5��
5���-�-.�q�T�Z�Z�8�9�
9�&*�%D�%D�I�E��.�.�I��&�K�2G�
�K�K�I�K�I��6�7�
7�.	$����J�
9��:�:�%�!%�!2�!2�!4�Q�R�!8�D�J�)�.�F�(.���F�%�#+�F�L�*0�.�.�F�'�%-�F�N�
.�-1�,A�,A�$�BK�-M�)�	�>�)�8�F��	�6�;�;�7� '�	�6�;�;� ?�� C�1�����i�P�Q��	�6�;�;�7�
8�*�9�F�#)�#4�#4�F�L�%+�%8�%8�F�N�9��2�2�4�I�
9�(�,�F�+1�?�?�F�(�&+�F�O�,�"�<�<�+�E�*/�.�.�E�'�%*�E�N�+�%)�$9�$9�.�:C�%E�!�	�6�(�;�F�&,�&:�&:�F�O�;�!�<�<�9�E�%*�%8�%8�E�N�9�$�D�J��&� � ��u
5��I��:*�9�F�#)�#4�#4�F�L�%+�%8�%8�F�N�9��"(�;�F�&,�&:�&:�F�O�;�!�<�<�9�E�%*�%8�%8�E�N�9��$�D�J�sU�!I,�$(I1�K$�)BI7�=I7�6I7�:K$�	AJ%�&:K$�7+J"�"K$�%<K!�!K$�$	K-c�j�|js*|jttfvr	|j	d�|sn|jtk(r[|jr
|j}n|j}t|t�r$|j||�}|j||�|S|sO|jtk(r<|js0|j� |j}|j||�|S|}|St|�dk(r>|jdtfvr*|\}|j||�}|j||�|S|jtk(r!|D�cgc]}|j||���}}|S|jtk(r6|D�cgc]}|j||���}}|j||d�|S|jtk(rt}|S|D�cgc]}|j||���}}|D]}|j||��|S#t
$rY���wxYwcc}wcc}wcc}w)Nr]r r)r�r�rrrar�rrKr�rrr��_check_valuerr�r)r8r�r:r>r��vs      rr~zArgumentParser._get_values�	s-���$�$����f�i�=P�)P�
��"�"�4�(�
�v�|�|�x�7��$�$����������%��%������6���!�!�&�%�0�P��I�&�,�,�,�">��'�'��~�~�)������!�!�&�%�0�@��9$��8��3��
��
"�v�|�|��h�7G�'G�%�K�J��O�O�F�J�7�E����f�e�,�,��'�\�\�Y�
&�9D�E�A�T�_�_�V�Q�/�E�E�E�$���\�\�V�
#�9D�E�A�T�_�_�V�Q�/�E�E�E����f�e�A�h�/����\�\�X�
%��E���:E�E�A�T�_�_�V�Q�/�E�E�E��
-���!�!�&�!�,�
-����g�
��
��BF��F��Fs#�H�H&�H+� H0�	H#�"H#c��|jd|j|j�}t|�std�}t	|||z��	||�}|S#t
$r}t
|�}t	||��d}~wttf$rJt|jdt|j��}||d�}td�}t	|||z��wxYw)Nr0z%r is not callabler1)r0r>z!invalid %(type)s value: %(value)r)rr0rrrrrr
r�rNr4)	r8r�r�rr�rryr=rs	         rr�zArgumentParser._get_value	
s����&�&�v�v�{�{�F�K�K�H�	��	�"��(�)�C����i��8�8�
	4��z�*�F��
��!�	-��c�(�C����,�,���:�&�	4��6�;�;�
�D����4E�F�D� �:�6�D��7�8�C����d�
�3�3�		4�s�A�	C�!A8�8ACc���|j�U||jvrF|djtt|j��d�}t	d�}t|||z��yy)Nr.)r>rz3invalid choice: %(value)r (choose from %(choices)s))rr7r�r4rr)r8r�r>rr�s     rr�zArgumentParser._check_value"
s^���>�>�%�%�v�~�~�*E�"�#�y�y��T�6�>�>�)B�C�E�D��I�J�C����d�
�3�3�	+F�%rc��|j�}|j|j|j|j�|j�Sr)r�r�r�r�r�r�)r8rus  rr�zArgumentParser.format_usage-
sB���'�'�)�	����D�J�J��
�
� �;�;�	=��$�$�&�&rc���|j�}|j|j|j|j�|j|j�|jD]c}|j|j�|j|j�|j|j�|j��e|j|j�|j�Sr)r�r�r�r�r�r�r�r�r�r!r�r�r�rXr�)r8ru�action_groups   rr�zArgumentParser.format_help3
s����'�'�)�	�	���D�J�J��
�
� �;�;�	=�	���4�+�+�,�!�/�/�	$�L��#�#�L�$6�$6�7����|�7�7�8��#�#�L�$?�$?�@��!�!�#�		$�	���4�;�;�'��$�$�&�&rc�:�|j|j��S)Nr�)rYrgrDs rr�zArgumentParser._get_formatterJ
s���#�#����#�3�3rc�h�|�tj}|j|j�|�yr)r�r�r�r��r8�files  r�print_usagezArgumentParser.print_usageP
s)���<��;�;�D����D�-�-�/��6rc�h�|�tj}|j|j�|�yr)r�r�r�r�r�s  rr�zArgumentParser.print_helpU
s)���<��;�;�D����D�,�,�.��5rc��|r'|xstj}	|j|�yy#ttf$rYywxYwr)r��stderr�writerr�)r8rr�s   rr�zArgumentParser._print_messageZ
sB����&�4�;�;�D�
��
�
�7�#���#�G�,�
��
�s�+�=�=c�r�|r |j|tj�tj|�yr)r�r�r�r�)r8�statusrs   rr�zArgumentParser.exite
s%����������5��	�	�&�rc��|jtj�|j|d�}|j	dtd�|z�y)z�error(message: string)

        Prints a usage message incorporating the message to stderr and
        exits.

        If you override this in a subclass, it should not return -- it
        should either exit or raise an exception.
        )rgrrOz%(prog)s: error: %(message)s
N)r�r�r�rgr�r)r8rrs   rr�zArgumentParser.errorj
s=��	
������%��	�	�g�6���	�	�!�Q�7�8�4�?�@rrGr)rN)#r1rFrGrHrrlr5rkrrorirur�rwr�r�r�r�r�r�r�r�r�r~r�r�r�r�r�r�r�r�r�r�rnros@rrr�s�����,��!���!.�!�'+�"&�")��"�#�=0�D	?��>�*�
.��$�LA!�F�6�#�,� 7,�r(�T+�b�H!�Z8�t�24�'�'�.4�7�
6�
��
Arr)5rH�__version__�__all__�osrT�rerb�sysr�rerrrrUrrrrrrr�r*r*rLrr	r
rrrA�	Exceptionrrr
rdrrqrxr~r�r�r�r�r�r�r�r�rrr�rrrrrr�<module>r�s���;�z����,����	�.���������	���	�.���v��>	�"K�F�K�\Q�-�Q�!�6�!��M��:$�}�$�&�?�I�?�(	�	�	�\@�
�\@�@�h��6/�F�6/�r .�6� .�F2��2�.�(��"�)��"#-�F�#-�L-��-�61�6�1�.�&��&�V��8bL��bL�H-�M�-�1:�v�1:�n$� �$�(s8��s8�l	';�&�';�TE�n�E�8[A�%�'8�[A��u3�����s�E(�(E7�6E7

Zerion Mini Shell 1.0