Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
optparse.cpython-314.pyc457 linesDownload Raw Back to __pycache__
1+
2��i-�����RtRt.R-OtRt^RIt^RIt^RIHtHtRt	!RR3]44t!RR]4t!RR]4t
!RR
]4t!RR]4t!RR]4t!RR4t!RR]4t!RR	]4tRtRtR]]!R 43R!]]!R 43R"]]!R#43R$]]!R$43/tR%tR&tR.t!R'R4tR/tR0t!R(R4t!R)R4t !R*R] 4t!!R+R] 4t"R,t#]t$R#)1a�A powerful, extensible, and easy-to-use option parser.5 6By Greg Ward <gward@python.net>7 8Originally distributed as Optik.9 10For support, use the optik-users@lists.sourceforge.net mailing list11(http://lists.sourceforge.net/lists/listinfo/optik-users).12 13Simple usage example:14 15   from optparse import OptionParser16 17   parser = OptionParser()18   parser.add_option("-f", "--file", dest="filename",19                     help="write report to FILE", metavar="FILE")20   parser.add_option("-q", "--quiet",21                     action="store_false", dest="verbose", default=True,22                     help="don't print status messages to stdout")23 24   (options, args) = parser.parse_args()25z1.5.3�Option�Values�OptionContainer�OptionGroup�OptionParser�
HelpFormatter�IndentedHelpFormatter�TitledHelpFormatter�
OptParseError�OptionError�OptionConflictError�OptionValueError�BadOptionErrora26Copyright (c) 2001-2006 Gregory P. Ward.  All rights reserved.27Copyright (c) 2002 Python Software Foundation.  All rights reserved.28 29Redistribution and use in source and binary forms, with or without30modification, are permitted provided that the following conditions are31met:32 33  * Redistributions of source code must retain the above copyright34    notice, this list of conditions and the following disclaimer.35 36  * Redistributions in binary form must reproduce the above copyright37    notice, this list of conditions and the following disclaimer in the38    documentation and/or other materials provided with the distribution.39 40  * Neither the name of the author nor the names of its41    contributors may be used to endorse or promote products derived from42    this software without specific prior written permission.43 44THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS45IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED46TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A47PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR48CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,49EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,50PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR51PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF52LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING53NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS54SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.55N)�gettext�ngettextc�T�RVPP\V4V3,#)z<%s at 0x%x: %s>)�	__class__�__name__�id��selfs&�Lib\optparse.py�_reprrPs"������!8�!8�"�T�(�D� I�I�I�c�,a�]tRt^[toRtRtRtVtR#)r56c��WnR#�N��msg�rrs&&r�__init__�OptParseError.__init__\s���rc��VP#rrrs&r�__str__�OptParseError.__str___s���x�x�rrN)r�57__module__�__qualname__�__firstlineno__r r#�__static_attributes__�__classdictcell__��
__classdict__s@rr58r59[s������rc�0a�]tRt^ctoRtRtRtRtVtR#)rzQ60Raised if an Option instance is created with invalid or61inconsistent arguments.62c�2�Wn\V4VnR#r)r�str�	option_id)rr�options&&&rr �OptionError.__init__is�����V���rc�z�VP'dRVP:RVP:2#VP#)zoption z: )r/rrs&rr#�OptionError.__str__ms'���>�>�>�&*�n�n�d�h�h�?�?��8�8�Or)rr/N�	rr%r&r'�__doc__r r#r(r)r*s@rrrcs�����63%��rc��]tRt^stRtRtR#)rz=64Raised if conflicting options are added to an OptionParser.65�N�rr%r&r'r5r(r7rrrrss��rc��]tRt^xtRtRtR#)r
zG66Raised if an invalid option value is encountered on the command67line.68r7Nr8r7rrr
r
xs��rc�0a�]tRt^~toRtRtRtRtVtR#)rz:69Raised if an invalid option is seen on the command line.70c��WnR#r��opt_str�rr=s&&rr �BadOptionError.__init__�s���rc�:�\R4VP,#)zno such option: %s)�_r=rs&rr#�BadOptionError.__str__�s���%�&����5�5rr<Nr4r*s@rrr~s������6�6rc�0a�]tRt^�toRtRtRtRtVtR#)�AmbiguousOptionErrorz<71Raised if an ambiguous option is seen on the command line.72c�<�\PW4W nR#r)rr �
possibilities)rr=rFs&&&rr �AmbiguousOptionError.__init__�s������.�*�rc�p�\R4VPRPVP43,#)zambiguous option: %s (%s?)�, )rAr=�joinrFrs&rr#�AmbiguousOptionError.__str__�s2���.�/��<�<����4�+=�+=�!>�?�@�	Ar)rFNr4r*s@rrDrD�s�����+�A�ArrDc�a�]tRt^�toRtRtRtRtRtRt	Rt73RtR	tR74t
RtRtR
tRtRtRtRtRtVtR#)ra575Abstract base class for formatting option help.  OptionParser76instances should use one of the HelpFormatter subclasses for77formatting help; by default IndentedHelpFormatter is used.78 79Instance attributes:80  parser : OptionParser81    the controlling OptionParser instance82  indent_increment : int83    the number of columns to indent per nesting level84  max_help_position : int85    the maximum starting column for option help text86  help_position : int87    the calculated starting column for option help text;88    initially the same as the maximum89  width : int90    total number of columns for output (pass None to constructor for91    this value to be taken from the $COLUMNS environment variable)92  level : int93    current indentation level94  current_indent : int95    current indentation level (in columns)96  help_width : int97    number of columns available for option help text (calculated)98  default_tag : str99    text to replace with each option's default value, "%default"100    by default.  Set to false value to disable default value expansion.101  option_strings : { Option : str }102    maps Option instances to the snippet of help text explaining103    the syntax of that option, e.g. "-h, --help" or104    "-fFILE, --file=FILE"105  _short_opt_fmt : str106    format string controlling how short options with values are107    printed in help text.  Must be either "%s%s" ("-fFILE") or108    "%s %s" ("-f FILE"), because those are the two syntaxes that109    Optik supports.110  _long_opt_fmt : str111    similar but for long options; must be either "%s %s" ("--file FILE")112    or "%s=%s" ("--file=FILE").113�nonec��RVnWnVf+\\PR,4pV^,pW0n\V\V^,114V^,44;Vn115Vn^Vn^Vn
RVnW@nRVn/VnRVnRVnR# \116\3d^PpL�i;i)N�COLUMNSz%defaultz%s %sz%s=%s)�parser�indent_increment�int�os�environ�KeyError�117ValueError�width�min�max�
help_position�max_help_position�current_indent�level�118help_width�short_first�default_tag�option_strings�_short_opt_fmt�
_long_opt_fmt�rrQr[rWr_s&&&&&rr �HelpFormatter.__init__�s���119��� 0���=�
��B�J�J�y�1�2��
�Q�J�E��120��%�s�5�2�:�7G�!�7K�'L�M�	N���T�3������121����&��%��� ���%���$�����j�)�
���
�s� B+�+C�Cc��WnR#r)rP�rrPs&&r�122set_parser�HelpFormatter.set_parser�s���rc�b�VR9d\RV,4hRV,R,VnR#)�z/invalid metavar delimiter for short options: %r�%sN)rk� )rVrb�r�delims&&r�set_short_opt_delimiter�%HelpFormatter.set_short_opt_delimiter�s2���	�!��A�E�I�K�
K�"�U�l�T�1��rc�b�VR9d\RV,4hRV,R,VnR#)�=z.invalid metavar delimiter for long options: %rrlN)rsrm)rVrcrns&&r�set_long_opt_delimiter�$HelpFormatter.set_long_opt_delimiter�s2���123�"��@�5�H�J�
J�!�E�\�D�0��rc�~�V;PVP,
unV;P^,
unR#)�N�r\rQr]rs&r�indent�HelpFormatter.indent�s&�����t�4�4�4���124�125�a��126rc��V;PVP,unVP^8�gQR4hV;P^,unR#)�zIndent decreased below 0.Nrxrs&r�dedent�HelpFormatter.dedent�s@�����t�4�4�4���"�"�a�'�D�)D�D�'��127�128�a��129rc��\R4h�zsubclasses must implement��NotImplementedError�r�usages&&r�format_usage�HelpFormatter.format_usage����!�"=�>�>rc��\R4hr�r��r�headings&&r�format_heading�HelpFormatter.format_heading�r�rc��^RIp\VPVP,130^4pRVP,pVP	VVVVR7#)zi131Format a paragraph of free-form text for inclusion in the132help output at the current indentation level.133Nrm)�initial_indent�subsequent_indent)�textwraprYrWr\�fill)r�textr��134text_widthrys&&   r�_format_text�HelpFormatter._format_text�sS��135	�����d�&9�&9�9�2�>�136��T�(�(�(���}�}�T�'�,2�/5��7�	7rc�F�V'dVPV4R,#R#��137rk�r��r�descriptions&&r�format_description� HelpFormatter.format_descriptions����$�$�[�1�D�8�8�rc�T�V'd RVPV4,R,#R#r�r�)r�epilogs&&r�
format_epilog�HelpFormatter.format_epilogs#����$�+�+�F�3�3�d�:�:�rc�J�VPeVP'g
VP#VPPP	VP1384pV\JgVf
VPpVPPVP\V44#r)139rPr`�help�defaults�get�dest�140NO_DEFAULT�NO_DEFAULT_VALUE�replacer.)rr0�
default_values&& r�expand_default�HelpFormatter.expand_defaultsy���;�;��d�&6�&6�&6��;�;�����,�,�0�0����=�
��J�&�-�*?� �1�1�M��{�{�"�"�4�#3�#3�S��5G�H�Hrc	���.pVPV,pVPVP,141^,142p\V4V8�d$RVPRV3,pVPpMRVPRWC3,p^pVP	V4VP143'd�^RIpVPV4pVPWpP4pVP	RVRV^,3,4TPVR,U	u.uFp	RVPRV	3,NK	up	4MVR,R8wdVP	R4RPV4#uup	i)�z%*s%s144rkz	%*s%-*s  N�rwNNr������)rarZr\�len�appendr�r�r��wrapr^�extendrJ)145rr0�result�opts�	opt_width�indent_firstr��	help_text�146help_lines�lines147&&        r�
format_option�HelpFormatter.format_options?�����"�"�6�*���&�&��)<�)<�<�q�@�	��t�9�y� ��� 3� 3�R��>�>�D��-�-�L��$�"5�"5�r�9�!K�K�D��L��
�
�d���;�;�;���+�+�F�3�I�!���y�/�/�B�J��M�M�)�|�R��A��&G�G�H��M�M�'1�"�~�7�'5�t�%��(:�(:�B��'E�E�E�'5�7�
8�
�"�X��
��M�M�$���w�w�v����	7s�E'c��VP4^pVPFHpVPV4pW@PV&\	V\V4VP,4pKJ	VP4VPF[pVPFHpVPV4pW@PV&\	V\V4VP,4pKJ	K]	VP4VP4\V^,VP4Vn\	VPVP,148^4Vn
R#�r|N)ry�option_list�format_option_stringsrarYr�r\�
option_groupsr}rXr[rZrWr^)rrP�max_len�opt�strings�groups&&    r�store_option_strings�"HelpFormatter.store_option_stringsAs�����
����%�%�C��0�0��5�G�'.����$��'�3�w�<�$�2E�2E�#E�F�G�&�	
���
��)�)�E��(�(���4�4�S�9��+2�#�#�C�(��g�s�7�|�d�6I�6I�'I�J��)�*�149	
���
����
� ��1��d�.D�.D�E����d�j�j�4�+=�+=�=�r�B��rc���VP4'd�VP;'gVPP4pVPUu.uFpVP150W23,NK	ppVPUu.uFpVPWR3,NK	ppMVPpVPpVP'd151WF,pMWd,pRPV4#uupiuupi)z@Return a comma-separated list of option strings & metavariables.rI)152�takes_value�metavarr��upper�_short_optsrb�153_long_optsrcr_rJ)rr0r��sopt�154short_opts�lopt�	long_optsr�s&&      rr��#HelpFormatter.format_option_stringsSs���������n�n�;�;����(9�(9�(;�G�&,�&8�&8�:�&8�d��-�-���?�?�&8�
�:�&,�%6�%6�8�%6�T��+�+�t�o�=�=�%6�
�8�I� �+�+�J��)�)�I������)�D��)�D��y�y�����:��8s�C,�C1)
rcrbr\r`rZr^rQr]r[rarPr_rWN)rr%r&r'r5r�r rhrprtryr}r�r�r�r�r�r�r�r�r�r(r)r*s@rrr�sf����'�R��%�2�2�1���155?�?�7���I�"�HC�$�rc�:a�]tRtRtoRtRRltRtRtRtVt	R#)	rifz.Format help with indented section bodies.156    Nc�4�\PWW#V4R#r�rr rds&&&&&rr �IndentedHelpFormatter.__init__j���157	����$5�k�	Krc�&�\R4V,#)z158Usage: %s159)rAr�s&&rr��"IndentedHelpFormatter.format_usagers�����%�'�'rc�.�RVPRV3,#)z%*s%s:160rk)r\r�s&&rr��$IndentedHelpFormatter.format_headingus���T�0�0�"�g�>�>�>rr7)r��Nrw�161rr%r&r'r5r r�r�r(r)r*s@rrrfs�����K�(�?�?rc�:a�]tRtRtoRtRRltRtRtRtVt	R#)	r	iyz1Format help with underlined section headers.162    Nc�4�\PWW#V4R#rr�rds&&&&&rr �TitledHelpFormatter.__init__}r�rc�F�VP\R44:RV:R2#)�Usagez  r�)r�rAr�s&&rr�� TitledHelpFormatter.format_usage�s��!�0�0��7��<�e�D�Drc�X�V:RRVP,\V4,:R2#)r�z=-)r]r�r�s&&rr��"TitledHelpFormatter.format_heading�s"��$�d�4�:�:�&6��W��&E�&E�F�Frr7)r|r�Nr|r�r*s@rr	r	ys"�����K�E�G�Grc���VR,P4R8Xd^pMEVR,P4R8Xd^pVR,;'gRpMVR,R8Xd^pM^163pV!W4#):Nr�N�0x�0b�r�NN�0�NrwN)�lower)�val�type�radixs&& r�164_parse_numr��s_��165�2�w�}�}��$����	�R�����D�	 ����"�g�n�n���	�R��C���������rc�"�\V\4#r)r�rR)r�s&r�166_parse_intr��s���c�3��rrR�integer�long�floatzfloating-point�complexc��\VP,wr4V!V4# \d\\	R4YT3,4hi;i)zoption %s: invalid %s value: %r)�_builtin_cvtr�rVr
rA)r0r��value�cvt�whats&&&  r�
check_builtinr��sU���v�{�{�+�K�S�G��5�z����G��
�/�0�C�u�3E�E�G�	G�G�s	�#�)Ac��W P9dV#RP\\VP44p\	\R4WV3,4h)rIz.option %s: invalid choice: %r (choose from %s))�choicesrJ�map�reprr
rA)r0r�r�r�s&&& r�check_choicer�sM���������)�)�C��f�n�n�5�6���
�>�?��7�#�
$�%�	%rc167��a�]tRtRtoRt.ROtRtRtRtR t	R!t168R"tR]R]R]R]R]
/tRtR	tR169tRtRtR
tRtRtRtRtRtRt]]]]]]].tRt]tRtRtRt Rt!Rt"Rt#Rt$Vt%R#)#ri�a2170Instance attributes:171  _short_opts : [string]172  _long_opts : [string]173 174  action : string175  type : string176  dest : string177  default : any178  nargs : int179  const : any180  choices : [string]181  callback : function182  callback_args : (any*)183  callback_kwargs : { string : any }184  help : string185  metavar : string186rRr�r�r��choiceNc��.Vn.VnVPV4pVPV4VP	V4VP187FpV!V4K
	R#r)r�r��_check_opt_strings�_set_opt_strings�188_set_attrs�
CHECK_METHODS)rr��attrs�checkers&*, rr �Option.__init__*sX���������&�&�t�,�����d�#�	
������)�)�G��D�M�*rc�j�VUu.uFq"'gKVNK	ppV'g\R4hV#uupi)z+at least one option string must be supplied)�	TypeError�rr�r�s&& rr�Option._check_opt_strings=s5�� $�+�t��s���t��+���I�J�J����,s�	0�0c��VF�p\V4^8d\RV,V4h\V4^8XdMV^,R8XdV^,R8wg\RV,V4hVPPV4K�VR,R8XdV^,R8wg\RV,V4hVPPV4K�	R#)r�z>invalid option string %r: must be at least two characters long�-zMinvalid short option string %r: must be of the form -x, (x any non-dash char)�r|r�N�--zGinvalid long option string %r: must start with --, followed by non-dashN)r�rr�r�r�rs&& rr�Option._set_opt_stringsFs����C��3�x�!�|�!�;�=@�A�BF�H�H��S��Q���A��#�
�#�a�&�C�-�%�H�JM�N����� � �'�'��,��C��D�(�S��V�s�]�%�C�EH�I�������&�&�s�+�%rc�4�VPFDpW!9d\WW,4WKVR8Xd\W\4K8\WR4KF	V'd<\VP	44p\RRP
V4,V4hR#)�defaultNzinvalid keyword arguments: %srI)�ATTRS�setattrr��sorted�keysrrJ)rr189�attrs&& rr�Option._set_attrs[s}���J�J�D��}���E�K�0��K��9�$��D�190�3��D��-����5�:�:�<�(�E��/�$�)�)�E�2B�B���
�rc��VPf191RVnR#VPVP9d\RVP,V4hR#)N�storezinvalid action: %r)�action�ACTIONSrrs&r�
_check_action�Option._check_actionns?���;�;��!�D�K�
�[�[����
,��2�T�[�[�@�$�G�G�-rc�"�VPf>VPVP9d!VPe192RVnR#RVnR#R#\	VP\4'dVPP193VnVPR8XdRVnVPVP9d\RVP,V4hVPVP9d\RVP,V4hR#)Nr�stringr.zinvalid option type: %rz$must not supply a type for action %r)	r�r �ALWAYS_TYPED_ACTIONSr��194isinstancer�TYPESr�
TYPED_ACTIONSrs&r�_check_type�Option._check_typets����9�9���{�{�d�7�7�7��<�<�+� (�D�I�!)�D�I�
8��$�)�)�T�*�*� �I�I�.�.��	��y�y�E�!�$��	��y�y��195�196�*�!�";�d�i�i�"G��N�N��{�{�$�"4�"4�4�!�:�T�[�[�H�$�P�P�5rc��VPR8Xd�VPf
\RV4h\VP\\19734'gF\R\
\VP44PR4^,,V4hR#VPe\RVP,V4hR#)rNz/must supply a list of choices for type 'choice'z1choices must be a list of strings ('%s' supplied)�'z#must not supply choices for type %r)r�r�rr'�tuple�listr.�splitrs&r�
_check_choice�Option._check_choice�s����9�9�� ��|�|�#�!�E�t�M�M�����u�d�m�<�<�!�G��$�t�|�|�,�-�3�3�C�8��;�<�=A�C�C�=��\�\�
%��5��	�	�A�4�I�
I�&rc�\�VPVP9;'gVPRJpVPfoV'deVP'd2VP^,R,PRR4VnR#VP^,^,VnR#R#R#)Nr�rrA)r �
STORE_ACTIONSr�r�r�r�r�)rr�s& r�_check_dest�Option._check_dest�s����{�{�d�&8�&8�8�-�-��y�y��,�	��9�9������� �O�O�A�.�r�2�:�:�3��D��	� �,�,�Q�/��2��	�"-�rc��VPVP9d.VPe\RVP,V4hR#R#)Nz*'const' must not be supplied for action %r)r �
CONST_ACTIONS�constrrs&r�_check_const�Option._check_const�sB���;�;�d�0�0�0�T�Z�Z�5K��<�t�{�{�J���
�6L�0rc���VPVP9dVPf198^VnR#R#VPe\RVP,V4hR#)Nz*'nargs' must not be supplied for action %r)r r)�nargsrrs&r�_check_nargs�Option._check_nargs�sU���;�;�$�,�,�,��z�z�!���199�"�
�Z�Z�
#��<�t�{�{�J���
�$rc��VPR8Xd�\VP4'g\RVP,V4hVPe>\VP\4'g\RVP,V4hVPe@\VP\4'g\RVP,V4hR#R#VPe\RVP,V4hVPe
\RV4hVPe
\RV4hR#)�callbackzcallback not callable: %rNz3callback_args, if supplied, must be a tuple: not %rz4callback_kwargs, if supplied, must be a dict: not %rz.callback supplied (%r) for non-callback optionz.callback_args supplied for non-callback optionz0callback_kwargs supplied for non-callback option)	r �callablerAr�
callback_argsr'r.�callback_kwargs�dictrs&r�_check_callback�Option._check_callback�s8���;�;�*�$��D�M�M�*�*�!�/�$�-�-�?��G�G��"�"�.��t�1�1�5�9�9�!�I��(�(�)�*.�0�0��$�$�0��t�3�3�T�:�:�!�J��*�*�+�,0�2�2�;�1��}�}�(�!�D��m�m�$�%)�+�+��!�!�-�!�D�d�L�L��#�#�/�!�F��N�N�0rc�Z�RPVPVP,4#)�/)rJr�r�rs&rr#�Option.__str__�s ���x�x��(�(�4�?�?�:�;�;rc��VPRJ#r)r�rs&rr��Option.takes_value�s���y�y��$�$rc�r�VP'dVP^,#VP^,#)r|)r�r�rs&r�get_opt_string�Option.get_opt_string�s+���?�?�?��?�?�1�%�%��#�#�A�&�&rc�j�VPPVP4pVfV#V!WV4#r)�TYPE_CHECKERr�r�)rr�r�rs&&& r�check_value�Option.check_value�s3���#�#�'�'��	�	�2���?��L��4�e�,�,rc	��VeLVP^8XdVPW4#\VUu.uFq0PW4NK	up4#R#uupir)r=rRr.)rr�r��vs&&& r�
convert_value�Option.convert_value�sR�����z�z�Q���'�'��3�3���F��1�.�.�s�6��F�G�G�	��Gs�Ac�t�VPW4pVPVPVPWW44#r)rV�take_actionr r�)rr�r��valuesrPs&&&&&r�process�Option.process�s<���"�"�3�.��200����K�K����C��@�	@rc�F�VR8Xd\WRV4^#VR8Xd\WRVP4^#VR8Xd\WRR4^#VR8Xd\WRR4^#VR8Xd$VPV.4PV4^#VR8Xd.VPV.4PVP4^#VR8Xd&\WRVPV^4^,4^#VR	8XdFVP;'gR
pVP201;'g/pVP!WWF.VO5/VB^#VR2028Xd#VP4VP4^#VR8Xd#VP4VP4^#\RVP,4h)r�store_const�203store_trueT�store_falseFr��append_const�countrAr��versionzunknown action %rr7)rr9�ensure_valuer�rCrDrA�204print_help�exit�
print_versionrVr )	rr r�r�r�rZrP�args�kwargss	&&&&&&&  rrY�Option.take_action	s����W���F�%�(�4�3�}�
$��F�$�*�*�-�0�/�|�
#��F�$�'�,�+�}�
$��F�%�(�(�'�x�
�����b�)�0�0��7�$�#�~�
%�����b�)�0�0����<� ��w�
��F�&�"5�"5�d�A�">��"B�C���z�
!��%�%�+�+��D��)�)�/�/�R�F��M�M�$�U�D�T�D�V�D���v�
������K�K�M��
�y�
 �� � �"��K�K�M���0�4�;�;�>�?�?r)r�r�r r�r=r�)r r�r�rr=r9r�rArCrDr�r�)205rr^r_r`r�rarbrAr�rc)rr^r_r`r�rarb)rr�rA)rr�)r^ra)r%rRr�r�r�r)&rr%r&r'r5rr!r4r)r&r8r(r�rrQr	r rrrr"r*r1r5r:r>rFr#r�__repr__r�rNrRrVr[rYr(r)r*s@rrr�s������*
�E�	�G��M�!�M�&��%�M�206
D�E�$�
��
��
��
���	�L� �M�207�&�,�*�&H�P�0I�
3���N�8#� �"� �!�!�$�
&�M�<��H�%�'�-�H�208@��rc�fa�]tRtRtoR
RltRt]tRtRt	Rt209RtRR	ltRR210lt
RtRtVtR#)ri-Nc�d�V'd(VP4Fwr#\WV4K	R#R#r)�itemsr)rr�rr�s&&  rr �Values.__init__/s'���'�~�~�/�����C�(� 0�rc�,�\VP4#r)r.�__dict__rs&rr#�Values.__str__4s���4�=�=�!�!rc��\V\4'dVPVP8H#\V\4'dVPV8H#\#r)r'rrqrE�NotImplemented)r�others&&r�__eq__�
Values.__eq__9sD���e�V�$�$��=�=�E�N�N�2�2�
��t�
$�
$��=�=�E�)�)�!�!rc�n�\V4F%pW!9gKW,pVfK\WV4K'	R#)z�211Update the option values from an arbitrary dictionary, but only212use keys from dict that already have a corresponding attribute213in self.  Any keys in dict without a corresponding attribute214are silently ignored.215N)�dirr)rrEr�dvals&&  r�_update_careful�Values._update_carefulAs.����I�D��|��z���#��D��-�	rc�<�VPPV4R#)z�216Update the option values from an arbitrary dictionary,217using all keys from the dictionary regardless of whether218they have a corresponding attribute in self or not.219N)rq�update)rrEs&&r�
_update_loose�Values._update_looseNs��	
�
�
���T�"rc��VR8XdVPV4R#VR8XdVPV4R#\RV,4h)�careful�loosezinvalid update mode: %rN)r{rrV)rrE�modes&&&r�_update�Values._updateVs>���9��� � ��&�
�W�_����t�$��6��=�>�>rc��\V4\PV,pVP\	V4V4R#r)�220__import__�sys�modulesr��vars)r�modnamer��mods&&& r�read_module�Values.read_module^s*���7���k�k�'�"�����T�#�Y��%rc�r�/p\\V4P4V4VPW24R#r)�exec�open�readr�)r�filenamer�r�s&&& r�	read_file�Values.read_filecs*�����T�(�^�
 �
 �
"�D�)����T� rc�l�\W4'd\W4f
\WV4\W4#r)�hasattr�getattrr)rrr�s&&&rrd�Values.ensure_valuehs,���t�"�"�g�d�&9�&A��D��&��t�"�"rr7r)r�)rr%r&r'r r#rrkrvr{rr�r�r�rdr(r)r*s@rrr-s>����)�221"��H�"�.�#�?�&�222!�223#�#rc�a�]tRtRtoRtRtRtRtRtRt	Rt224R	tR225tRt
RtR
tRtRtRtRtRtRtVtR#)rina2226Abstract base class.227 228Class attributes:229  standard_option_list : [Option]230    list of standard options that will be accepted by all instances231    of this parser class (intended to be overridden by subclasses).232 233Instance attributes:234  option_list : [Option]235    the list of Option objects contained by this OptionContainer236  _short_opt : { string : Option }237    dictionary mapping short option strings, eg. "-f" or "-X",238    to the Option instances that implement them.  If an Option239    has multiple short option strings, it will appear in this240    dictionary multiple times. [1]241  _long_opt : { string : Option }242    dictionary mapping long option strings, eg. "--file" or243    "--exclude", to the Option instances that implement them.244    Again, a given Option can occur multiple times in this245    dictionary. [1]246  defaults : { string : any }247    dictionary mapping option destination names to default248    values for each destination [1]249 250[1] These mappings are common to (shared by) all components of the251    controlling OptionParser, where they are initially created.252 253c�v�VP4WnVPV4VPV4R#r)�_create_option_list�option_class�set_conflict_handler�set_description)rr��conflict_handlerr�s&&&&rr �OptionContainer.__init__�s3��254	
� � �"�(���!�!�"2�3����[�)rc�0�/Vn/Vn/VnR#r��255_short_opt�	_long_optr�rs&r�_create_option_mappings�'OptionContainer._create_option_mappings�s����������
rc�l�VPVnVPVnVPVnR#rr�rgs&&r�_share_option_mappings�&OptionContainer._share_option_mappings�s)��!�+�+����)�)�������
rc�D�VR9d\RV,4hWnR#)�errorz$invalid conflict_resolution value %rN)r��resolve)rVr�)r�handlers&&rr��$OptionContainer.set_conflict_handler�s"���.�.��C�g�M�N�N� '�rc��WnR#r�r�r�s&&rr��OptionContainer.set_description�s��&�rc��VP#rr�rs&r�get_description�OptionContainer.get_description�s�����rc��V=V=V=R#�zsee OptionParser.destroy().Nr�rs&r�destroy�OptionContainer.destroy�s���O��N��Mrc256�r�.pVPF8pW0P9gKVPW0PV,34K:	VPF8pW0P9gKVPW0PV,34K:	V'EdVP257pVR8Xd9\
RRPVUu.uFqU^,NK
	up4,V4hVR8Xd�VF�wr6VPR4'd*VPPV4VPVM(VPPV4VPVVP'dK�VP'dK�VPPPV4K�	R#R#R#uupi)r�z conflicting option string(s): %srIr�rN)r�r�r�r�r�r�rrJ�258startswith�remove�	containerr�)rr0�
conflict_optsr�r��co�c_options&&     r�_check_conflict�OptionContainer._check_conflict�si���
��%�%�C��o�o�%��$�$�c�?�?�3�+?�%@�A�&��$�$�C��n�n�$��$�$�c�>�>�#�+>�%?�@�%��=��+�+�G��'�!�)�6��i�i�� ?��2�A���� ?�@�A�����I�%�'4�O�S��~�~�d�+�+� �+�+�2�2�3�7� �N�N�3�/� �,�,�3�3�C�8� �O�O�C�0�$�0�0�0�H�4G�4G�4G� �*�*�6�6�=�=�h�G�(5�&���259!@s�F4c���\V^,\4'dVP!V/VBpMU\V4^8Xd;V'g3V^,p\V\4'g\RV,4hM\R4hVP
V4VPPV4Wn	VPFpW0PV&K	VPFpW0PV&K	VPenVP\ Jd&VPVP"VP&V#VPVP"9dRVP"VP&V#)z<add_option(Option)260add_option(opt_str, ..., kwarg=val, ...)261znot an Option instance: %r�invalid argumentsN)r'r.r�r�rrr�r�r�r�r�r�r�r�r�rr�r�)rrhrir0r�s&*,  r�262add_option�OptionContainer.add_option�s/���d�1�g�s�#�#��&�&��7��7�F�
��Y�!�^�F��!�W�F��f�f�-�-�� <�v� E�F�F�.��/�0�0����V�$�������'����%�%�C�#)�O�O�C� �&��$�$�C�"(�N�N�3��%��;�;�"��~�~�Z�/�-3�^�^��
�
�f�k�k�*��
����D�M�M�1�-1��
�
�f�k�k�*��
rc�:�VFpVPV4K	R#r)r�)rr�r0s&& r�add_options�OptionContainer.add_options�s��!�F��O�O�F�#�"rc�~�VPPV4;'gVPPV4#r)r�r�r�r>s&&r�263get_option�OptionContainer.get_option�s5�����#�#�G�,�,�,����"�"�7�+�	-rc�J�WP9;'gWP9#r)r�r�r>s&&r�264has_option�OptionContainer.has_options%���?�?�*�*�*��>�>�)�	+rc�p�VPPV4pVfVPPV4pVf\RV,4hVPFpVPVK	VP265FpVPVK	VPPPV4R#)Nzno such option %r)	r�r�r�rVr�r�r�r�r�)rr=r0r�s&&  r�
remove_option�OptionContainer.remove_options������$�$�W�-���>��^�^�'�'��0�F��>��0�7�:�;�;��%�%�C�����$�&��$�$�C����s�#�%����$�$�+�+�F�3rc���VP'gR#.pVPF9pVP\JdKVPVP	V44K;	RPV4#�rk)r�r��
SUPPRESS_HELPr�r�rJ)r�	formatterr�r0s&&  r�format_option_help�"OptionContainer.format_option_helpsY����������&�&�F��;�;�-�/��
�
�i�5�5�f�=�>�'��w�w�v��rc�@�VPVP44#r)r�r��rr�s&&rr��"OptionContainer.format_descriptions���+�+�D�,@�,@�,B�C�Crc���.pVP'd!VPVPV44VP'd!VPVP	V44RPV4#)r�)r�r�r�r�r�rJ�rr�r�s&& r�format_help�OptionContainer.format_help!s\���������M�M�$�1�1�)�<�=������M�M�$�1�1�)�<�=��y�y�� � r)r�r�r�r�r�r�N)rr%r&r'r5r r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r(r)r*s@rrrnsa�����<	*��(�(�266'� ��H�6�<$�-�+�4� �D�!�!rc�Ba�]tRtRtoR	RltRtRtRtRtRt	Vt267R#)268ri*Nc�t�Wn\PWPVPV4W nR#r)rPrr r�r��title)rrPr�r�s&&&&rr �OptionGroup.__init__,s.����� � ��%�%�v�'>�'>��	M��269rc�J�.VnVPVP4R#r)r�r�rPrs&rr��OptionGroup._create_option_list2s������#�#�D�K�K�0rc��WnR#r)r�)rr�s&&r�	set_title�OptionGroup.set_title6s���270rc�4�\PV4V=R#r�)rr�r�rs&rr��OptionGroup.destroy9s������%��rc��VPVP4pVP4V\P	W4,
pVP4V#r)r�r�ryrr�r}r�s&& rr��OptionGroup.format_help@sH���)�)�$�*�*�5�������/�-�-�d�>�>�������
r)r�rPr�r)rr%r&r'r r�r�r�r�r(r)r*s@rrr*s#�����1����rc271�>a�]tRtRtoRt.tRR]RRRRRRR3272RltRtRt	R	t273R274tR,RltRt
R
tRtRtRtRtRtRtRtRtRtRtR-RltRtRtRtRtRtRtRt R t!R.R!lt"R"t#R#t$R/R$lt%R%t&R/R&lt'R/R'lt(R(t)R/R)lt*R/R*lt+R+t,Vt-R#)0riHa8275Class attributes:276  standard_option_list : [Option]277    list of standard options that will be accepted by all instances278    of this parser class (intended to be overridden by subclasses).279 280Instance attributes:281  usage : string282    a usage string for your program.  Before it is displayed283    to the user, "%prog" will be expanded to the name of284    your program (self.prog or os.path.basename(sys.argv[0])).285  prog : string286    the name of the current program (to override287    os.path.basename(sys.argv[0])).288  description : string289    A paragraph of text giving a brief overview of your program.290    optparse reformats this paragraph to fit the current terminal291    width and prints it when the user requests help (after usage,292    but before the list of options).293  epilog : string294    paragraph of help text to print after option help295 296  option_groups : [OptionGroup]297    list of option groups in this parser (option groups are298    irrelevant for parsing the command-line, but very useful299    for generating help)300 301  allow_interspersed_args : bool = true302    if true, positional arguments may be interspersed with options.303    Assuming -a and -b each take a single argument, the command-line304      -ablah foo bar -bboo baz305    will be interpreted the same as306      -ablah -bboo -- foo bar baz307    If this flag were false, that command line would be interpreted as308      -ablah -- foo bar -bboo baz309    -- ie. we stop processing options as soon as we see the first310    non-option argument.  (This is the tradition followed by311    Python's getopt module, Perl's Getopt::Std, and other argument-312    parsing libraries, but it is generally annoying to users.)313 314  process_default_values : bool = true315    if true, option default values are processed similarly to option316    values from the command line: that is, they are passed to the317    type-checking function for the option's type (as long as the318    default value is a string).  (This really only matters if you319    have defined custom types; see SF bug #955889.)  Set it to false320    to restore the behaviour of Optik 1.4.1 and earlier.321 322  rargs : [string]323    the argument list currently being parsed.  Only set when324    parse_args() is active, and continually trimmed down as325    we consume arguments.  Mainly there for the benefit of326    callback options.327  largs : [string]328    the list of leftover arguments that we have skipped while329    parsing options.  If allow_interspersed_args is false, this330    list is always empty.331  values : Values332    the set of option values currently being accumulated.  Only333    set when parse_args() is active.  Also mainly for callbacks.334 335Because of the 'rargs', 'largs', and 'values' attributes,336OptionParser is not thread-safe.  If, for some perverse reason, you337need to parse command-line arguments simultaneously in different338threads, use different OptionParser instances.339 340Nr�Tc�8�\PWWV4VPV4W�nW@nRVnRVnVf\4pWpnVPPV4W�n341VPVVR7VP4R#)TN)�add_help)
rr �	set_usage�progrc�allow_interspersed_args�process_default_valuesrr�rhr��_populate_option_list�_init_parsing_state)rr�r�r�rcr�r�r��add_help_optionr�r�s&&&&&&&&&&&rr �OptionParser.__init__�s���	� � �� 0�	?����u���	���'+��$�&*��#���-�/�I�"�����!�!�$�'���	
�"�"�;�,;�	#�	=�	
� � �"rc��\PV4VPFpVP4K	V=V=V=R#)z�342Declare that you are done with this OptionParser.  This cleans up343reference cycles so the OptionParser (and all objects referenced by344it) can be garbage-collected promptly.  After calling destroy(), the345OptionParser is unusable.346N)rr�r�r�r�)rr�s& rr��OptionParser.destroy�s<��	����%��'�'�E��M�M�O�(������Nrc�B�.Vn.VnVP4R#r)r�r�r�rs&rr�� OptionParser._create_option_list�s���������$�$�&rc�B�VPRRR\R4R7R#)z-hz--helpr�zshow this help message and exit�r r�N�r�rArs&r�_add_help_option�OptionParser._add_help_option�s$������h�%��@�A�	�	Crc�@�VPRR\R4R7R#)z	--versionrcz&show program's version number and exitr�Nr�rs&r�_add_version_option� OptionParser._add_version_option�s"������(��G�H�	�	Jrc�347�VP'dVPVP4V'dVPV4VP'dVP4V'dVP	4R#R#r)�standard_option_listr�rcrr)rr�r�s&&&rr��"OptionParser._populate_option_list�s\���$�$�$����T�6�6�7�����[�)��<�<�<��$�$�&���!�!�#�rc�0�RVnRVnRVnR#r)�rargs�largsrZrs&rr�� OptionParser._init_parsing_state�s����348���349���rc���Vf\R4VnR#V\Jd350RVnR#VP4P	R4'dVR,VnR#WnR#)Nz%prog [options]zusage: :�NN)rAr��SUPPRESS_USAGEr�r�r�s&&rr��OptionParser.set_usage�sJ���=��,�-�D�J�
�n�
$��D�J�
�[�[�]�
%�
%�i�
0�
0��r��D�J��Jrc��RVnR#)z�Set parsing to not stop on the first non-option, allowing351interspersing switches with command arguments. This is the352default behavior. See also disable_interspersed_args() and the353class documentation description of the attribute354allow_interspersed_args.TN�r�rs&r�enable_interspersed_args�%OptionParser.enable_interspersed_args�s��(,��$rc��RVnR#)z�Set parsing to stop on the first non-option. Use this if355you have a command processor which runs another command that356has options of its own and you want to make sure these options357don't get confused.358FNrrs&r�disable_interspersed_args�&OptionParser.disable_interspersed_args�s��(-��$rc��WnR#r)r�)rr[s&&r�set_process_default_values�'OptionParser.set_process_default_valuess��&-�#rc�"�W PV&R#r)r�)rr�r�s&&&r�set_default�OptionParser.set_defaults��#�
�
�d�rc�<�VPPV4R#r)r�r~)rris&,r�set_defaults�OptionParser.set_defaultss���
�
���V�$rc��VPR,pVPFpVPVP4K 	V#)�NNN)r�r�r�)r�optionsr�s&  r�_get_all_options�OptionParser._get_all_options359s9���"�"�1�%���'�'�E��N�N�5�,�,�-�(��rc��VP'g\VP4#VPP4pVP	4FcpVPVP4p\V\4'gK6VP4pVPWC4WP&Ke	\V4#r)r�rr��copyr#r�r�r'r.rNrR)rr�r0rr=s&    r�get_default_values�OptionParser.get_default_valuess����*�*�*��$�-�-�(�(��=�=�%�%�'���+�+�-�F��l�l�6�;�;�/�G��'�3�'�'� �/�/�1��(.�(:�(:�7�(L����%�	.��h��rc�v�\V^,\4'd\V.VO5/VBpMp\V4^8XdVV'gNV^,p\V\4'g\	RV,4hVP360VJd\
R4hM\	R4hVPPV4V#)r|znot an OptionGroup instance: %rz"invalid OptionGroup (wrong parser)r�)	r'r.rr�rrPrVr�r�)rrhrir�s&*, r�add_option_group�OptionParser.add_option_group!s����d�1�g�s�#�#���6�t�6�v�6�E�
��Y�!�^�F���G�E��e�[�1�1�� A�E� I�J�J��|�|�4�'� �!E�F�F�(��/�0�0����!�!�%�(��rc���VPPV4;'gVPPV4pV'dVPVJd
VP#R#r)r�r�r�r�)rr=r0s&& r�get_option_group�OptionParser.get_option_group1sT���/�/�%�%�g�.�.�.��.�.�$�$�W�-�	��f�&�&�d�2��#�#�#�rc�J�Vf\PR,#VR,#)Nr�r!)r��argv)rrhs&&r�	_get_args�OptionParser._get_args;s���<��8�8�B�<����7�Nrc�>�VPV4pVfVP4pW0n.;VnpW nVPWCV4pWC,pVPW!4# \\3d%pTP\T44Rp?LIRp?ii;i)a�361parse_args(args : [string] = sys.argv[1:],362           values : Values = None)363-> (values : Values, args : [string])364 365Parse the command-line options found in 'args' (default:366sys.argv[1:]).  Any errors result in a call to 'error()', which367by default prints the usage message to stderr and calls368sys.exit() with an error message.  On success returns a pair369(values, args) where 'values' is a Values instance (with all370your option values) and 'args' is the list of arguments left371over after parsing options.372N)r1r'r	r373rZ�
_process_argsrr
r�r.�check_values)rrhrZr	r374�stop�errs&&&    r�375parse_args�OptionParser.parse_argsAs������t�$���>��,�,�.�F��376����377�U���	!��%�%�e�F�;�D��}��� � ��.�.��	� 0�1�	!��J�J�s�3�x� � ��	!�s�A'�'B�8B�Bc��W3#)as378check_values(values : Values, args : [string])379-> (values : Values, args : [string])380 381Check that the supplied option values and leftover arguments are382valid.  Returns the option values and leftover arguments383(possibly adjusted, possibly completely new -- whatever you384like).  Default implementation just returns the passed-in385values; subclasses may override as desired.386r7)rrZrhs&&&rr5�OptionParser.check_valueshs���~�rc�8�V'd�V^,pVR8XdV^R#VR,R8XdVPW#4K>VR,R8Xd$\V4^8�dVPW#4KoVP'dVP	V4V^K�R#R#)a`_process_args(largs : [string],387                 rargs : [string],388                 values : Values)389 390Process command-line arguments and populate 'values', consuming391options and arguments from 'rargs'.  If 'allow_interspersed_args' is392false, stop at the first non-option argument.  If true, accumulate any393interspersed non-option arguments in 'largs'.394rNrr�r)�_process_long_optr��_process_short_optsr�r�)rr395r	rZ�args&&&& rr4�OptionParser._process_argsus������(�C��d�{��!�H���S��T�!��&�&�u�5��R��C��C��H�q�L��(�(��7��-�-�-����S�!��!�H��'rc�,�\WP4#)z�_match_long_opt(opt : string) -> string396 397Determine which long option string 'opt' matches, ie. which one398it is an unambiguous abbreviation for.  Raises BadOptionError if399'opt' doesn't unambiguously match any long option string.400)�
_match_abbrevr�)rr�s&&r�_match_long_opt�OptionParser._match_long_opt�s���S�.�.�1�1rc�d�VP^4pRV9d*VPR^4wrEVP^V4RpMTpRpVPV4pVPV,pVP4'drVPp\V4V8d)VP\RRV4RVRV/,4MYV^8XdVP^4p	M@\V^V4p	V^V1M,V'd#VP\R4V,4MR	p	VPVX	W 4R	#)401r|rsTF�.%(option)s option requires %(number)d argument�/%(option)s option requires %(number)d argumentsr0�numberz%s option does not take a valueN)
�popr0�insertrCr�r�r=r�r�rr.rAr[)402rr	rZr?r��next_arg�had_explicit_valuer0r=r�s403&&&       rr=�OptionParser._process_long_opt�s���i�i��l���#�:�!�i�i��Q�/�O�S��L�L��H�%�!%���C�!&���"�"�3�'������$��������L�L�E��5�z�E�!��404�405�8�D�E���'��X�u�=�>�?��!���	�	�!����e�A�e�n�-���!�E�'�N�
��J�J�q�:�;�c�A�B��E����s�E�6�0rc�n�VP^4pRp^pVR,EFpRV,pVPPV4pV^,
pV'g\V4hVP	4'd�V\V48dVP
^W5R4RpVPp	\V4V	8d)VP\RRV	4RVR	V	/,4M/V	^8XdVP^4p406M\V^V	4p407V^V	1MRp408VPVX409W 4V'gEKR#	R#)410r|Fr�rNTrFrGr0rH)rIr�r�rr�r�rJr=r�rr.r[)rr	rZr?r6�i�chr�r0r=r�s&&&        rr>� OptionParser._process_short_opts�s'���i�i��l����
���b�'�'�B���(�C��_�_�(�(��-�F�
��F�A��$�S�)�)��!�!�#�#��s�3�x�<��L�L��C��G�,��D������u�:��%��J�J�x�H�I�� �#+�C��5�!A� B�C��a�Z�!�I�I�a�L�E�!�%��%�.�1�E��a��g�����N�N�3��v�4��t��Arc��VPf5\PP\P411^,4#VP#r)r�rS�path�basenamer�r0rs&r�
get_prog_name�OptionParser.get_prog_name�s3���9�9���7�7�#�#�C�H�H�Q�K�0�0��9�9�rc�B�VPRVP44#)z%prog)r�rU)r�ss&&r�expand_prog_name�OptionParser.expand_prog_names���y�y��$�"4�"4�"6�7�7rc�8�VPVP4#r)rYr�rs&rr��OptionParser.get_descriptions���$�$�T�%5�%5�6�6rc��V'd \PPV4\P!V4R#r)r��stderr�writerf)r�statusrs&&&rrf�OptionParser.exit412s#����J�J���S�!�����rc��VP\P4VP^VP	4:RV:R24R#)z�error(msg : string)413 414Print a usage message incorporating 'msg' to stderr and exit.415If you override this in a subclass, it should not return -- it416should either exit or raise an exception.417z	: error: r�N)�print_usager�r^rfrUrs&&rr��OptionParser.errors2��	
������$��	�	�!�$�*<�*<�*>��D�Erc��VP'd5VPPVPVP44#R#r�)r�r�r�rYrs&r�	get_usage�OptionParser.get_usages9���:�:�:��>�>�.�.��%�%�d�j�j�1�3�
3�rc�d�VP'd\VP4VR7R#R#)a1print_usage(file : file = stdout)418 419Print the usage message for the current program (self.usage) to420'file' (default stdout).  Any occurrence of the string "%prog" in421self.usage is replaced with the name of the current program422(basename of sys.argv[0]).  Does nothing if self.usage is empty423or not defined.424��fileN)r��printrf�rrjs&&rrc�OptionParser.print_usage s#���:�:�:��$�.�.�"��.�rc�`�VP'dVPVP4#R#r�)rcrYrs&r�get_version�OptionParser.get_version,s#���<�<�<��(�(����6�6�rc�d�VP'd\VP4VR7R#R#)aprint_version(file : file = stdout)425 426Print the version message for this program (self.version) to427'file' (default stdout).  As with print_usage(), any occurrence428of "%prog" in self.version is replaced by the current program's429name.  Does nothing if self.version is empty or undefined.430riN)rcrkrorls&&rrg�OptionParser.print_version2s%���<�<�<��$�"�"�$�4�0�rc��Vf
VPpVPV4.pVPVP\	R444VP4VP'd6VP\PW44VPR4VPF4pVPVPV44VPR4K6	VP4RPVRR4#)N�Optionsr�rkr�)
r�r�r�r�rAryr�rr�r�r�r}rJ)rr�r�r�s&&  rr��OptionParser.format_option_help=s��������I��&�&�t�,����
�
�i�.�.�q��|�<�=����������M�M�/�<�<�T�M�N��M�M�$���'�'�E��M�M�%�+�+�I�6�7��M�M�$��(�	�����w�w�v�c�r�{�#�#rc�8�VPVP4#r)r�r�r�s&&rr��OptionParser.format_epilogNs���&�&�t�{�{�3�3rc��Vf
VPp.pVP'd'VPVP4R,4VP'd(VPVPV4R,4VPVP
V44VPVPV44RPV4#)Nr�rk)	r�r�r�rfr�r�r�r�rJr�s&& rr��OptionParser.format_helpQs��������I����:�:�:��M�M�$�.�.�*�T�1�2������M�M�$�1�1�)�<�t�C�D��
�
�d�-�-�i�8�9��
�
�d�(�(��3�4��w�w�v��rc�l�Vf\PpVPVP44R#)z�print_help(file : file = stdout)431 432Print an extended help message, listing all options and any433help text provided with them, to 'file' (default stdout).434N)r��stdoutr_r�rls&&rre�OptionParser.print_help]s'���<��:�:�D��435�436�4�#�#�%�&r)r�r�r�r437r�r�r�r�r	r�rZrc)T)NNr�r).rr%r&r'r5rrr r�r�rrr�r�r�rrrrrr#r'r*r-r1r8r5r4rCr=r>rUrYr�rfr�rfrcrorgr�r�r�rer(r)r*s@rrrHs�����B�H���!�$��")�!��!%���#�D�$'�438C�439J�440$��	�,�-�.�$�%�� �"� ��%/�N��f2�"1�H$�R�8�7��441F��442/��	1�$�"4�443�'�'rc��W9dV#VP4Uu.uFpVPV4'gKVNK 	pp\V4^8Xd444V^,#V'g\V4hVP	4\W4huupi)z�_match_abbrev(s : string, wordmap : {string : Option}) -> string445 446Return the string key in 'wordmap' for which 's' is an unambiguous447abbreviation.  If 's' is found to be ambiguous or doesn't match any of448'words', raise BadOptionError.449)rr�r�r�sortrD)rX�wordmap�wordrFs&&  rrBrBjs���	�|���+2�,�,�.�0�.�$� �O�O�A�.���.�
�0��}���"� ��#�#�� ��#�#�
��� �&�q�8�8��0s450�B�B)r�make_optionr�rrrrrrrr	r451rrr
rr)�NO�DEFAULT�SUPPRESSHELP�
SUPPRESSUSAGE)%r5�__version__�__all__�
__copyright__r�rSrrArr�	Exceptionr452rrr
rrDrrr	r�r�r�r�r�r�rr�rr�rrrrrrBr�r7rr�<module>r�sV���.����$�
�@�*�J��Y���=�� �;��453�
��6�m�6�454A�N�455A�O�O�b?�]�?�&G�=�G�&� ��*�a�	�l�3��:�q��|�4��E�1�%5�#6�7��g�q��|�4�7��456G�%��457�n�n�f"�
�#��>#�>#�By!�y!�x�?��<]'�O�]'�D9�:�r
codekingpro/portable-devtools · Team Ai