403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/click/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/click/__pycache__/parser.cpython-314.pyc
+
�
4i{J��t�Rt^RIt^RIHt^RIHt^RIHt^RIH	t	^RIH
t
^RIHt^RIHt]P'd^RIt^R	IHt^R
IHt^RIHt^RIHt]P0!R
4t]!4tRRltRRltRRltRRlt!RR4t!RR4t!RR4t !RR4t!R#)a;
This module started out as largely a copy paste from the stdlib's
optparse module with the features removed that we do not need from
optparse because we implement them in Click on a higher level (for
instance type handling, help formatting and a lot more).

The plan is to remove more and more from here over time.

The reason this is a different module and not optparse from the stdlib
is that there are differences in 2.x and 3.x about the error messages
generated and optparse in the stdlib uses gettext for no good reason
and might cause us issues.

Click uses parts of optparse written by Gregory P. Ward and maintained
by the Python Software Foundation. This is limited to code in parser.py.

Copyright 2001-2006 Gregory P. Ward. All rights reserved.
Copyright 2002-2006 Python Software Foundation. All rights reserved.
N)�deque)�gettext)�ngettext)�BadArgumentUsage)�BadOptionUsage)�NoSuchOption)�
UsageError)�Argument)�Context)�Option)�	Parameter�Vc��V^8�dQhR\P\,R\P\,R\P\P\P
\\P\P\,,R3,,\P\,3,/#)��args�
nargs_spec�returnN)�t�Sequence�str�int�Tuple�Union�Optional�List)�formats"�./usr/lib/python3/dist-packages/click/parser.py�__annotate__r3su��9!�9!�
�*�*�S�/�9!�'(�z�z�#��9!��W�W�Q�Z�Z�����Q�Z�Z��
�
�3��%@�$� F�G�
H�!�&�&�QT�+�
U�V�9!�c�ja�\V4p\V4p.pRoRV3RllpV'd�V!V4pVfKV^8XdVPV!V44K6V^8�dP\V4Uu.uF
qS!V4NK	ppSeVP4VP\	V44K�V^8gK�Se\R4h\
V4oVPR4K�Se0\	V4VS&.p\VS^,R4VS^,R%\	V4\V43#uupi)auGiven an iterable of arguments and an iterable of nargs specifications,
it returns a tuple with all the unpacked arguments at the first index
and all remaining arguments as the second.

The nargs specification is the number of arguments that should be consumed
or `-1` to indicate that this position should eat up all the remainders.

Missing items are filled with `None`.
Nc�R�V^8�dQhRRR\P\,/#)r�czte.Deque[V]r)rrr
)rs"rr�"_unpack_args.<locals>.__annotate__Ds"����-��A�J�J�q�M�rc�r<�SfVP4#VP4# \dR#i;i�N)�popleft�pop�
IndexError)r!�sposs&�r�_fetch�_unpack_args.<locals>._fetchDs6���	��|��y�y�{�"��u�u�w����	��	�s�'�'�6�6zCannot have two nargs < 0)	r�append�range�reverse�tuple�	TypeError�len�reversed�list)rr�rvr)�nargs�_�xr(s&&     @r�_unpack_argsr73s�����;�D��z�"�J�DF�B� �D�����z�"���=���A�:��I�I�f�T�l�#�
�Q�Y�',�U�|�4�|�!����|�A�4����	�	���I�I�e�A�h��
�Q�Y���� ;�<�<��r�7�D��I�I�d�O�����;��4����!�"�T�A�X�Z�.�1��4�!�8�:����9�d�4�j� � ��-5s�/D0c�f�V^8�dQhR\R\P\\3,/#)r�optr)rrr)rs"rrros'����3��1�7�7�3��8�,�rc��VR,pVP4'dRV3#VR,V8XdVR,VR,3#WR,3#)�N�N�:r<rN�NrN:rNN�r<NN)�isalnum)r9�firsts& r�	split_optrBosJ����G�E��}�}����3�w��
�3�x�5���2�w��B�����b�'�>�rc�^�V^8�dQhR\R\PR,R\/#)rr9�ctxr
r)rrr)rs"rrrxs*��6�6�s�6����I�!6�6�3�6rc�n�VeVPfV#\V4wr VVPV42#r$)�token_normalize_funcrB)r9rD�prefixs&& r�
normalize_optrHxs=��
�{�c�.�.�6��
��C�.�K�F��X�c�.�.�s�3�4�5�5rc�Z�V^8�dQhR\R\P\,/#)r�stringr)rrr)rs"rrrs"����S��Q�V�V�C�[�rc���^RIpVPVRR7pRVnRVn.pVFpVPV4K	V# \d TPTP
4T#i;i)a{Split an argument string as with :func:`shlex.split`, but don't
fail if the string is incomplete. Ignores a missing closing quote or
incomplete escape sequence and uses the partial token as-is.

.. code-block:: python

    split_arg_string("example 'my file")
    ["example", "my file"]

    split_arg_string("example my\")
    ["example", "my"]

:param string: String to split.
NT)�posixr=)�shlex�whitespace_split�
commentersr+�
ValueError�token)rJrM�lex�outrQs&    r�split_arg_stringrTsw���
�+�+�f�D�+�
)�C��C���C�N�
�C���E��J�J�u����J��
��	�
�
�3�9�9���J�
�s�A�&A/�.A/c�da�]tRt^�toR	V3RlRllt]V3RlRl4tV3RlRltRtVt	R#)
rNc
��<�V^8�dQhRRRS[PS[,RS[PS[,RS[PS[,RS[RS[PS[P
,/#)r�obj�
CoreOption�opts�dest�actionr4�const�rrrrr�Any)r�
__classdict__s"�rr�Option.__annotate__�sl�����
���j�j��o���j�j��o�	�
�
�
�3����
��z�z�!�%�%� �rc��.Vn.Vn\4VnVF�p\	V4wr�V'g\RVR24hVPP
V^,4\V4^8Xd.\V	4^8XdVPPV4K�VPPV4VPP
V4K�	VfRpW0n	W@n
WPnW`nWn
R#)z$Invalid start character for option (�)N�store)�_short_opts�
_long_opts�set�prefixesrBrP�addr0r+rZr[r4r\rW)
�selfrWrYrZr[r4r\r9rG�values
&&&&&&&   r�__init__�Option.__init__�s���������$'�E��
��C�%�c�N�M�F�� �#G��u�A�!N�O�O��M�M���f�Q�i�(��6�{�a��C��J�!�O�� � �'�'��,����&�&�s�+��
�
�!�!�&�)���>��F��	����
��
��rc� <�V^8�dQhRS[/#)rr)�bool)rr_s"�rrr`�s���2�2�T�2rc� �VPR9#)rc)rcr+)r[)ris&r�takes_value�Option.takes_value�s���{�{�1�1�1rc�<<�V^8�dQhRS[PRRRR/#�rrj�state�ParsingStaterN)rr^)rr_s"�rrr`�s&���
%�
%�Q�U�U�
%�>�
%�d�
%rc� �VPR8XdWPVP&EM=VPR8Xd&VPVPVP&EMVPR8Xd7VPP	VP.4PV4M�VPR8XdAVPP	VP.4PVP4MoVPR8XdFVPP
VP^4^,VPVP&M\RVPR24hVPPVP4R#)rc�store_constr+�append_const�countzunknown action '�'N)
r[rYrZr\�
setdefaultr+�getrP�orderrW)rirjrts&&&r�process�Option.process�s���;�;�'�!�$)�J�J�t�y�y�!�
�[�[�M�
)�$(�J�J�E�J�J�t�y�y�!�
�[�[�H�
$��J�J�!�!�$�)�)�R�0�7�7��>�
�[�[�N�
*��J�J�!�!�$�)�)�R�0�7�7��
�
�C�
�[�[�G�
#�$)�J�J�N�N�4�9�9�a�$@�1�$D�E�J�J�t�y�y�!��/����}�A�>�?�?�
�����4�8�8�$r)rerdr[r\rZr4rWrg�Nr<N)
�__name__�
__module__�__qualname__�__firstlineno__rk�propertyrpr~�__static_attributes__�__classdictcell__�r_s@rrr�s.������B�2��2�
%�
%rrc�Ha�]tRt^�toRV3RlRlltV3RlRltRtVtR#)r	c�N<�V^8�dQhRRRS[PS[,RS[/#)rrW�CoreArgumentrZr4�rrrr)rr_s"�rr�Argument.__annotate__�s*�����N��!�*�*�S�/��#�rc�*�W nW0nWnR#r$�rZr4rW�rirWrZr4s&&&&rrk�Argument.__init__�s���	��
��rc�<�V^8�dQhRS[PS[PS[,S[PS[PS[,,3,RRRR/#rs)rrrrr)rr_s"�rrr��sP���%�%��w�w�q�z�z�#���
�
�1�:�:�c�?�(C�C�D�%��%�
�	%rc���VP^8�dlVfQh\RV44pV\V48XdRpM@V^8wd:\\	R4PVPVPR74hVPR8Xd"VPPe
VR8XdRpWPVP&VPPVP4R#)r<Nc3�0"�TFqeK^x�K	R#5ir$�)�.0r6s& r�	<genexpr>�#Argument.process.<locals>.<genexpr>�s���6�5�a���5�s��
z'Argument {name!r} takes {nargs} values.��namer4���r�)r4�sumr0rr5rrZrW�envvarrYr}r+)rirjrt�holess&&& rr~�Argument.process�s���
�:�:��>��$�$�$��6�5�6�6�E���E�
�"����!��&��?�@�G�G�!�Y�Y�d�j�j�H�����:�:�������� ;�����E� %�
�
�4�9�9��
�����4�8�8�$rr�N�r<)r�r�r�r�rkr~r�r�r�s@rr	r	�s������
%�%rr	c�2a�]tRt^�toV3RlRltRtVtR#)ruc�H<�V^8�dQhRS[PS[,RR/#)r�rargsrN)rrr)rr_s"�rr�ParsingState.__annotate__�s#���/�/�a�f�f�S�k�/�d�/rc�<�/Vn.VnWn.VnR#r$)rY�largsr�r})rir�s&&rrk�ParsingState.__init__�s��(*��	�"$��
��
�,.��
r)r�rYr}r�N)r�r�r�r�rkr�r�r�s@rruru�s����/�/rruc��a�]tRt^�toRtRV3RlRlltRV3RlRlltRV3RlRlltV3R	lR
ltV3RlRlt	V3R
lRlt
V3RlRltV3RlRltV3RlRlt
V3RlRltRtVtR#)�OptionParseraThe option parser is an internal class that is ultimately used to
parse options and arguments.  It's modelled after optparse and brings
a similar but vastly simplified API.  It should generally not be used
directly as the high level Click classes wrap it for you.

It's not nearly as extensible as optparse or argparse as it does not
implement features that are implemented on a higher level (such as
types or defaults).

:param ctx: optionally the :class:`~click.Context` where this parser
            should go with.
Nc�F<�V^8�dQhRS[PR,RR/#)rrDr
rN)rr)rr_s"�rr�OptionParser.__annotate__
s$���*�*�A�J�J�y�1�*�T�*rc��WnRVnRVnVe#VPVnVPVn/Vn/VnRR0Vn.VnR#)TFN�-�--)rD�allow_interspersed_args�ignore_unknown_options�
_short_opt�	_long_opt�
_opt_prefixes�_args)rirDs&&rrk�OptionParser.__init__
s_����
.2��$�
-2��#��?�+.�+F�+F�D�(�*-�*D�*D�D�'�/1���.0���!�4�[���')��
rc��<�V^8�dQhRRRS[PS[,RS[PS[,RS[PS[,RS[RS[PS[P
,RR	/#)
rrWrXrYrZr[r4r\rNr])rr_s"�rrr�%sv���)�)�
�)��j�j��o�)��j�j��o�	)�
�
�
�3��)��
)��z�z�!�%�%� �)�
�)rc	�B�VUu.uFp\WpP4NK	pp\WW4WVR7pVPP	VP
4VPFpW�PV&K	VPFpW�PV&K	R#uupi)aJAdds a new option named `dest` to the parser.  The destination
is not inferred (unlike with optparse) and needs to be explicitly
provided.  Action can be any of ``store``, ``store_const``,
``append``, ``append_const`` or ``count``.

The `obj` can be used to identify the option in the order list
that is returned from the parser.
)r[r4r\N)
rHrDrr��updatergrdr�rer�)	rirWrYrZr[r4r\r9�options	&&&&&&&  r�
add_option�OptionParser.add_option%s���"9=�=���
�c�8�8�,���=���4�e�Q�����!�!�&�/�/�2��%�%�C�#)�O�O�C� �&��$�$�C�"(�N�N�3��%��>s�Bc�R<�V^8�dQhRRRS[PS[,RS[RR/#)rrWr�rZr4rNr�)rr_s"�rrr�>s;���A�A�!�A�)*���C��A�AD�A�	
�Arc�R�VPP\WVR74R#)z�Adds a positional argument named `dest` to the parser.

The `obj` can be used to identify the option in the order list
that is returned from the parser.
)rZr4N)r�r+r	r�s&&&&r�add_argument�OptionParser.add_argument>s��	
�
�
���(�3��?�@rc�<�V^8�dQhRS[PS[,RS[PS[PS[S[P
3,S[PS[,S[PR,3,/#)rrr�
CoreParameter)rrrr�Dictr^)rr_s"�rrr�HsW���4�4��F�F�3�K�4�	
�������Q�U�U�
�#�Q�V�V�C�[�!�&�&��2I�I�	J�4rc��\V4pVPV4VPV4VPVPVP3# \d/TPeTPP
'ghL[i;i)a2Parses positional arguments and returns ``(values, args, order)``
for the parsed options and arguments as well as the leftover
arguments if there are any.  The order is a list of objects as they
appear on the command line.  If arguments appear multiple times they
will be memorized multiple times as well.
)	ru�_process_args_for_options�_process_args_for_argsrrD�resilient_parsingrYr�r})rirrts&& r�
parse_args�OptionParser.parse_argsHs}���T�"��	��*�*�5�1��'�'��.��z�z�5�;�;����3�3���	��x�x��t�x�x�'A�'A�'A��(B�	�s�"A�4B�B�
Bc�$<�V^8�dQhRS[RR/#�rrtrN�ru)rr_s"�rrr�Zs���	�	�L�	�T�	rc�.�\VPVP,VPUu.uFq"PNK	up4wr4\VP4FwrVVP
W5,V4K	WAn.VnR#uupir$)r7r�r�r�r4�	enumerater~)rirtr6�pargsr�idx�args&&     rr��#OptionParser._process_args_for_argsZsp��"��K�K�%�+�+�%����'D��A����'D�
���"�$�*�*�-�H�C��K�K��
�E�*�.�������(Es�B
c�$<�V^8�dQhRS[RR/#r�r�)rr_s"�rrr�es�����|���rc��VP'd�VPP^4p\V4pVR8XdR#VR,VP9dV^8�dVP	W!4KsVP
'dVPPV4K�VPP^V4R#R#)�r�Nr;)	r�r&r0r��
_process_optsr�r�r+�insert)rirtr��arglens&&  rr��&OptionParser._process_args_for_optionses����k�k�k��+�+�/�/�!�$�C���X�F��d�{���R��D�.�.�.�6�A�:��"�"�3�.��-�-�-����"�"�3�'����"�"�1�c�*��rc�T<�V^8�dQhRS[RS[PS[,RS[RR/#)rr9�explicit_valuertrN)rrrru)rr_s"�rrr��s5���%�%��%�()�
�
�3��%�@L�%�	
�%rc��WP9d0^RIHpV!WP4p\WVPR7hVPV,pVP
'd4VeVPP^V4VPWV4pM+Ve&\V\R4PVR74hRpVPWs4R#)r�)�get_close_matches)�
possibilitiesrDNz&Option {name!r} does not take a value.)r�)
r��difflibr�rrDrpr�r��_get_value_from_staterr5rr~)rir9r�rtr�r�r�rjs&&&&    r�_match_long_opt�OptionParser._match_long_opt�s����n�n�$�1�-�c�>�>�B�M��s�T�X�X�N�N�����$������
�)����"�"�1�n�5��.�.�s�E�B�E�
�
'� ��Q�?�@�G�G�S�G�Q��
�
�E����u�$rc�*<�V^8�dQhRS[RS[RR/#�rr�rtrN�rru)rr_s"�rrr��s'���&F�&F�C�&F��&F��&Frc���Rp^pV^,p.pVR,F�p\VV2VP4pVPPV4p	V^,
pV	'g<VP'dVPV4Kn\
W�PR7hV	P'dDV\V48d!VPP^WR4RpVPW�V4p
MRp
V	PW�4V'gK�M	VP'd;V'd1VPPVRPV424R#R#R#)Fr?)rDNTr=)rHrDr�r|r�r+rrpr0r�r�r�r~r��join)rir�rt�stop�irG�unknown_options�chr9r�rjs&&&        r�_match_short_opt�OptionParser._match_short_opt�s.����
���Q������b�'�'�B��6�(�2�$�����:�C��_�_�(�(��-�F�
��F�A���.�.�.�#�*�*�2�.��"�3�H�H�5�5��!�!�!��s�3�x�<��K�K�&�&�q�#�b�'�2��D��2�2�3��F�����N�N�5�(��t��3�>�&�&�&�?��K�K���&��"�'�'�/�*B�)C�D�E�,;�&rc�F<�V^8�dQhRS[RS[RS[RS[P/#)r�option_namer�rtr)rrrurr^)rr_s"�rrr��s1���$�$��$�(.�$�7C�$�	
���$rc�j�VPp\VP4V8dLVPP'd	\pV#\V\
RRV4PWR74hV^8Xd�VP^,pVPP'dG\V\4'd1VR,VP9d\V4^8�d	\pV#VPP^4pV#\VPRV4pVPRV1V#)z%Option {name!r} requires an argument.z+Option {name!r} requires {nargs} arguments.r�r;N)
r4r0r�rW�_flag_needs_valuerrr�
isinstancerr�r&r.)rir�r�rtr4rj�	next_rargs&&&&   rr��"OptionParser._get_value_from_state�s�������u�{�{��e�#��z�z�+�+�+�)��8��5%���?�E����f�+�f�;�
���a�Z����A��I��
�
�,�,�,��y�#�.�.��b�M�T�%7�%7�7��	�N�Q�&�*����������*��
���%�+�+�f�u�-�.�E����F�U�F�#��rc�*<�V^8�dQhRS[RS[RR/#r�r�)rr_s"�rrr��s"���$�$��$�\�$�d�$rc�n�RpRV9dVPR^4wrCMTp\W@P4pVPWSV4R# \d_TR,TP
9dTP
Y4R#TP'ghTPPT4R#i;i)N�=r>)
�splitrHrDr�rr�r�r�r�r+)rir�rtr��long_opt�
norm_long_opts&&&   rr��OptionParser._process_opts�s������#�:�'*�y�y��a�'8�$�H�n��H�%�h���9�
�
	$�� � ���F���	$��2�w�d�0�0�0��%�%�c�1���.�.�.���K�K���s�#�	$�s�A�4B4�B4�B4�3B4)r�r�r�r�r�rDr�r$r�r�)r�r�r�r��__doc__rkr�r�r�r�r�r�r�r�r�r�r�r�s@rr�r��su�����*�*�0)�)�2A�A�4�4�$	�	���H%�%�<&F�&F�P$�$�L$�$rr�)"r��typingr�collectionsrrr5r�
exceptionsrrrr�
TYPE_CHECKING�typing_extensions�te�corer	r�r
rrXrr��TypeVarr
�objectr�r7rBrHrTrur�r�rr�<module>rs����0�� ��(�&�$�"��?�?�?�"�.��*�0��I�I�c�N��
�H��9!�x�6��D3%�3%�l%�%�@/�/�T$�T$r

Youez - 2016 - github.com/yon3zu
LinuXploit