+
     Bi-                        R t . R,OtRt^ RIt^ RIt^ RIHtHt R t ! R R	]	4      t
 ! R R
]
4      t ! R R]4      t ! R R]
4      t ! R R]
4      t ! R R]4      t ! R R4      t ! R R]4      t ! R R]4      tR tR tR]]! R4      3R ]]! R4      3R!]]! R"4      3R#]]! R#4      3/tR$ tR% tR-t ! R& R4      tR.tR/t ! R' R4      t ! R( R4      t ! R) R]4      t  ! R* R]4      t!R+ t"]t#R# )0z1.5.3OptionValuesOptionContainerOptionGroupOptionParserHelpFormatterIndentedHelpFormatterTitledHelpFormatterOptParseErrorOptionErrorOptionConflictErrorOptionValueErrorBadOptionErrora  
Copyright (c) 2001-2006 Gregory P. Ward.  All rights reserved.
Copyright (c) 2002 Python Software Foundation.  All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

  * Redistributions of source code must retain the above copyright
    notice, this list of conditions and the following disclaimer.

  * Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in the
    documentation and/or other materials provided with the distribution.

  * Neither the name of the author nor the names of its
    contributors may be used to endorse or promote products derived from
    this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
N)gettextngettextc                 T    R V P                   P                  \        V 4      V 3,          # )z<%s at 0x%x: %s>)	__class____name__idselfs   &/usr/lib/python3.14/optparse.py_reprr   P   s"    !8!8"T(D III    c                   ,   a  ] tR t^[t o R tR tRtV tR# )r
   c                    Wn         R # Nmsgr   r   s   &&r   __init__OptParseError.__init__\   s    r   c                    V P                   # r   r   r   s   &r   __str__OptParseError.__str___   s    xxr   r   Nr   
__module____qualname____firstlineno__r    r#   __static_attributes____classdictcell____classdict__s   @r   r
   r
   [   s      r   c                   ,   a  ] tR t^ct o R tR tRtV tR# )r   c                2    Wn         \        V4      V n        R # r   )r   str	option_id)r   r   options   &&&r   r    OptionError.__init__i   s    Vr   c                z    V P                   '       d   R V P                   : RV P                  : 2# V P                  # )zoption z: )r0   r   r   s   &r   r#   OptionError.__str__m   s'    >>>&*nndhh??88Or   )r   r0   Nr%   r+   s   @r   r   r   c   s     % r   c                       ] tR t^stRtR# )r    Nr   r&   r'   r(   r)   r6   r   r   r   r   s       r   c                       ] tR t^xtRtR# )r   r6   Nr7   r6   r   r   r   r   x   r8   r   c                   ,   a  ] tR t^~t o R tR tRtV tR# )r   c                    Wn         R # r   opt_strr   r=   s   &&r   r    BadOptionError.__init__   s    r   c                :    \        R 4      V P                  ,          # )zno such option: %s)_r=   r   s   &r   r#   BadOptionError.__str__   s    %&55r   r<   Nr%   r+   s   @r   r   r   ~   s     6 6r   c                   ,   a  ] tR t^t o R tR tRtV tR# )AmbiguousOptionErrorc                <    \         P                  W4       W n        R # r   )r   r    possibilities)r   r=   rF   s   &&&r   r    AmbiguousOptionError.__init__   s    .*r   c                p    \        R 4      V P                  RP                  V P                  4      3,          # )zambiguous option: %s (%s?), )rA   r=   joinrF   r   s   &r   r#   AmbiguousOptionError.__str__   s2    ./<<4+=+=!>?@ 	Ar   )rF   Nr%   r+   s   @r   rD   rD      s     +A Ar   rD   c                   ~   a  ] tR t^t o RtR tR tR tR tR t	R t
R tR	 tR
 tR tR tR tR tR tR tRtV tR# )r   nonec                   R V n         Wn        Vf+    \        \        P                  R,          4      pV^,          pW0n        \        V\        V^,
          V^,          4      4      ;V n
        V n        ^ V n        ^ V n        R V n        W@n        RV n        / V n        RV n        RV n        R #   \
        \        3 d    ^Pp Li ; i)NCOLUMNSz%defaultz%s %sz%s=%s)parserindent_incrementintosenvironKeyError
ValueErrorwidthminmaxhelp_positionmax_help_positioncurrent_indentlevel
help_widthshort_firstdefault_tagoption_strings_short_opt_fmt_long_opt_fmtr   rQ   r[   rW   r_   s   &&&&&r   r    HelpFormatter.__init__   s    
  0=BJJy12 QJE
%s52:7G!7K'LM	NT3
&% %$ j) s    B+ +C Cc                    Wn         R # r   )rP   r   rP   s   &&r   
set_parserHelpFormatter.set_parser   s    r   c                b    VR9  d   \        RV,          4      hRV,           R,           V n        R# ) z/invalid metavar delimiter for short options: %r%sN)rk    )rV   rb   r   delims   &&r   set_short_opt_delimiter%HelpFormatter.set_short_opt_delimiter   s2    	!AEIK K"UlT1r   c                b    VR9  d   \        RV,          4      hRV,           R,           V n        R# )=z.invalid metavar delimiter for long options: %rrl   N)rs   rm   )rV   rc   rn   s   &&r   set_long_opt_delimiter$HelpFormatter.set_long_opt_delimiter   s2    
"@5HJ J!E\D0r   c                ~    V ;P                   V P                  ,          un         V ;P                  ^,          un        R#    Nr\   rQ   r]   r   s   &r   indentHelpFormatter.indent   s&    t444

a
r   c                ~    V ;P                   V P                  ,          un         V ;P                  ^,          un        R# rw   ry   r   s   &r   dedentHelpFormatter.dedent   s&    t444

a
r   c                    \        R 4      hzsubclasses must implementNotImplementedErrorr   usages   &&r   format_usageHelpFormatter.format_usage       !"=>>r   c                    \        R 4      hr   r   r   headings   &&r   format_headingHelpFormatter.format_heading   r   r   c                    ^ RI p\        V P                  V P                  ,
          ^4      pRV P                  ,          pVP	                  VVVVR7      # )    Nrm   )initial_indentsubsequent_indent)textwraprY   rW   r\   fill)r   textr   
text_widthrz   s   &&   r   _format_textHelpFormatter._format_text   sS    
 	d&9&992>
T(((}}T',2/5  7 	7r   c                F    V'       d   V P                  V4      R ,           # R# 
rk   r   r   descriptions   &&r   format_description HelpFormatter.format_description  s    $$[1D88r   c                T    V'       d    R V P                  V4      ,           R ,           # R# r   r   )r   epilogs   &&r   format_epilogHelpFormatter.format_epilog  s#    $++F33d::r   c                J   V P                   e   V P                  '       g   VP                  # V P                   P                  P	                  VP
                  4      pV\        J g   Vf   V P                  pVP                  P                  V P                  \        V4      4      # r   )
rP   r`   helpdefaultsgetdest
NO_DEFAULTNO_DEFAULT_VALUEreplacer/   )r   r1   default_values   && r   expand_defaultHelpFormatter.expand_default  sy    ;;d&6&6&6;;,,00=J&-*? 11M{{""4#3#3S5GHHr   c           	        . pV P                   V,          pV P                  V P                  ,
          ^,
          p\        V4      V8  d$   RV P                  RV3,          pV P                  pMRV P                  RWC3,          p^ pVP	                  V4       VP
                  '       d   ^ RIpV P                  V4      pVP                  WpP                  4      pVP	                  RVRV^ ,          3,          4       TP                  VR,           U	u. uF  p	RV P                  RV	3,          NK  	  up	4       MVR,          R8w  d   VP	                  R4       RP                  V4      # u up	i )   z%*s%s
rk   z	%*s%-*s  Nrx   NNr   )ra   rZ   r\   lenappendr   r   r   wrapr^   extendrJ   )
r   r1   resultopts	opt_widthindent_firstr   	help_text
help_lineslines
   &&        r   format_optionHelpFormatter.format_option  s?    ""6*&&)<)<<q@	t9y  3 3R>>D--L$"5"5r9!KKDLd;;;++F3I!y//BJMM)|RA&GGHMM'1"~7'5t %(:(:B'EEE'57 8"XMM$wwv	7s   E'c                   V P                  4        ^ pVP                   FH  pV P                  V4      pW@P                  V&   \	        V\        V4      V P                  ,           4      pKJ  	  V P                  4        VP                   F[  pVP                   FH  pV P                  V4      pW@P                  V&   \	        V\        V4      V P                  ,           4      pKJ  	  K]  	  V P                  4        V P                  4        \        V^,           V P                  4      V n        \	        V P                  V P                  ,
          ^4      V n        R# r   N)rz   option_listformat_option_stringsra   rY   r   r\   option_groupsr}   rX   r[   rZ   rW   r^   )r   rP   max_lenoptstringsgroups   &&    r   store_option_strings"HelpFormatter.store_option_stringsA  s   %%C005G'.$'3w<$2E2E#EFG & 	))E((44S9+2##C(gs7|d6I6I'IJ ) *
 	 1d.D.DEdjj4+=+==rBr   c                   VP                  4       '       d   VP                  ;'       g    VP                  P                  4       pVP                   Uu. uF  pV P
                  W23,          NK  	  ppVP                   Uu. uF  pV P                  WR3,          NK  	  ppMVP                  pVP                  pV P                  '       d
   WF,           pMWd,           pR P                  V4      # u upi u upi )rI   )
takes_valuemetavarr   upper_short_optsrb   
_long_optsrc   r_   rJ   )r   r1   r   sopt
short_optslopt	long_optsr   s   &&      r   r   #HelpFormatter.format_option_stringsS  s    nn;;(9(9(;G&,&8&8:&8d --??&8  : &,%6%68%6T ++to==%6  8I  ++J))I)D)Dyy:8s   C, C1)rc   rb   r\   r`   rZ   r^   rQ   r]   r[   ra   rP   r_   rW   N)r   r&   r'   r(   r   r    rh   rp   rt   rz   r}   r   r   r   r   r   r   r   r   r   r)   r*   r+   s   @r   r   r      sa     V %221
??7I"HC$ r   c                   6   a  ] tR tRt o RR ltR tR tRtV tR# )r   if  Nc                4    \         P                  WW#V4       R # r   r   r    rd   s   &&&&&r   r    IndentedHelpFormatter.__init__j      
 	$5k	Kr   c                &    \        R 4      V,          # )z
Usage: %s
)rA   r   s   &&r   r   "IndentedHelpFormatter.format_usager  s    %''r   c                .    R V P                   RV3,          # )z%*s%s:
rk   )r\   r   s   &&r   r   $IndentedHelpFormatter.format_headingu  s    T00"g>>>r   r6   )r      Nrx   	r   r&   r'   r(   r    r   r   r)   r*   r+   s   @r   r   r   f  s     K(? ?r   c                   6   a  ] tR tRt o RR ltR tR tRtV tR# )r	   iy  Nc                4    \         P                  WW#V4       R # r   r   rd   s   &&&&&r   r    TitledHelpFormatter.__init__}  r   r   c                F    V P                  \        R 4      4      : RV: R2# )Usagez  r   )r   rA   r   s   &&r   r    TitledHelpFormatter.format_usage  s    !007<eDDr   c                X    V: R RV P                   ,          \        V4      ,          : R 2# )r   z=-)r]   r   r   s   &&r   r   "TitledHelpFormatter.format_heading  s"    $d4::&6W&E&EFFr   r6   )r   r   Nr   r   r+   s   @r   r	   r	   y  s     KEG Gr   c                     V R ,          P                  4       R8X  d   ^pMEV R ,          P                  4       R8X  d   ^pV R,          ;'       g    Rp MV R,          R8X  d   ^pM^
pV! W4      # ):Nr   N0x0br   NN0Nrx   N)lower)valtyperadixs   && r   
_parse_numr     s_    
2w}}$	RD	 "gnn	RCr   c                 "    \        V \        4      # r   )r   rR   )r   s   &r   
_parse_intr     s    c3r   rR   integerlongfloatzfloating-pointcomplexc                     \         V P                  ,          w  r4 V! V4      #   \         d    \        \	        R 4      YT3,          4      hi ; i)zoption %s: invalid %s value: %r)_builtin_cvtr   rV   r   rA   )r1   r   valuecvtwhats   &&&  r   check_builtinr     sU    v{{+KSG5z G/0Cu3EEG 	GGs	   # )Ac                     W P                   9   d   V# R P                  \        \        V P                   4      4      p\	        \        R4      WV3,          4      h)rI   z.option %s: invalid choice: %r (choose from %s))choicesrJ   mapreprr   rA   )r1   r   r   r   s   &&& r   check_choicer    sM    ))Cfnn56>?7#$% 	%r   c            
          a  ] tR tRt o . ROtRtRtRtRtR t	R!t
R]R]R]R]R]/tRtR tR	 tR
 tR tR tR tR tR tR tR tR t]]]]]]].tR t]tR tR tR tR t R t!R t"Rt#V t$R# )"r   i  rR   r   r   r   choiceNc                    . V n         . V n        V P                  V4      pV P                  V4       V P	                  V4       V P
                   F  pV! V 4       K  	  R # r   )r   r   _check_opt_strings_set_opt_strings
_set_attrsCHECK_METHODS)r   r   attrscheckers   &*, r   r    Option.__init__*  sX     &&t,d# 	 ))GDM *r   c                j    V Uu. uF  q"'       g   K  VNK  	  ppV'       g   \        R 4      hV# u upi )z+at least one option string must be supplied)	TypeErrorr   r   r   s   && r   r  Option._check_opt_strings=  s5      $+tst+IJJ ,s   	00c                   V F  p\        V4      ^8  d   \        RV,          V 4      h\        V4      ^8X  dM   V^ ,          R8X  d   V^,          R8w  g   \        RV,          V 4      hV P                  P                  V4       K  VR,          R8X  d   V^,          R8w  g   \        RV,          V 4      hV P                  P                  V4       K  	  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   r   r   r   r   r  s   && r   r  Option._set_opt_stringsF  s    C3x!|!;=@ABFH H SQA##a&C-%HJMN    '',CD(SVs]%CEHI  &&s+% r   c                4   V P                    FD  pW!9   d   \        WW,          4       W K  VR 8X  d   \        W\        4       K8  \        WR4       KF  	  V'       d<   \        VP	                  4       4      p\        RRP                  V4      ,          V 4      hR# )defaultNzinvalid keyword arguments: %srI   )ATTRSsetattrr   sortedkeysr   rJ   )r   r  attrs   && r   r	  Option._set_attrs[  s}    JJD}EK0K9$D
3D-  5::<(E/$))E2BB  r   c                    V P                   f
   RV n         R # V P                   V P                  9  d   \        RV P                   ,          V 4      hR # )Nstorezinvalid action: %r)actionACTIONSr   r   s   &r   _check_actionOption._check_actionn  s?    ;;!DK[[,2T[[@$GG -r   c                "   V P                   f>   V P                  V P                  9   d!   V P                  e
   RV n         R # RV n         R # R # \	        V P                   \         4      '       d   V P                   P
                  V n         V P                   R8X  d   RV n         V P                   V P                  9  d   \        RV P                   ,          V 4      hV P                  V P                  9  d   \        RV P                  ,          V 4      hR # )Nr  stringr/   zinvalid option type: %rz$must not supply a type for action %r)	r   r!  ALWAYS_TYPED_ACTIONSr   
isinstancer   TYPESr   TYPED_ACTIONSr   s   &r   _check_typeOption._check_typet  s    99{{d777<<+ (DI !)DI 8 $))T** II..	yyE!$	yy

*!";dii"GNN{{$"4"44!:T[[H$P P 5r   c                   V P                   R 8X  d   V P                  f   \        RV 4      h\        V P                  \        \
        34      '       gF   \        R\        \        V P                  4      4      P                  R4      ^,          ,          V 4      hR# V P                  e   \        RV P                   ,          V 4      hR# )r  Nz/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   r   r(  tuplelistr/   splitr   s   &r   _check_choiceOption._check_choice  s    99 ||#!EtM Mudm<<!G$t||,-33C8;<=AC C = \\%5		A4I I &r   c                \   V P                   V P                  9   ;'       g    V P                  R JpV P                  fo   V'       de   V P                  '       d2   V P                  ^ ,          R,          P                  RR4      V n        R # V P                  ^ ,          ^,          V n        R # R # R # )Nr   r  rA   )r!  STORE_ACTIONSr   r   r   r   r   )r   r   s   & r   _check_destOption._check_dest  s     {{d&8&88 - -yy, 	99  OOA.r2::3D	 ,,Q/2	 "-r   c                    V P                   V P                  9  d.   V P                  e   \        RV P                   ,          V 4      hR # R # )Nz*'const' must not be supplied for action %r)r!  CONST_ACTIONSconstr   r   s   &r   _check_constOption._check_const  sB    ;;d000TZZ5K<t{{J  6L0r   c                    V P                   V P                  9   d   V P                  f
   ^V n        R # R # V P                  e   \        RV P                   ,          V 4      hR # )Nz*'nargs' must not be supplied for action %r)r!  r*  nargsr   r   s   &r   _check_nargsOption._check_nargs  sU    ;;$,,,zz!
 "ZZ#<t{{J  $r   c                   V P                   R 8X  d   \        V P                  4      '       g   \        RV P                  ,          V 4      hV P                  e>   \        V P                  \        4      '       g   \        RV P                  ,          V 4      hV P                  e@   \        V P                  \        4      '       g   \        RV P                  ,          V 4      hR# R# V P                  e   \        RV P                  ,          V 4      hV P                  e   \        RV 4      hV P                  e   \        RV 4      hR# )callbackzcallback 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!  callablerB  r   callback_argsr(  r/  callback_kwargsdictr   s   &r   _check_callbackOption._check_callback  s8   ;;*$DMM**!/$--?G G"".t11599!I(()*.0 0 $$0t33T::!J**+,02 2 ; 1 }}(!Dmm$%)+ + !!-!DdL L##/!FN N 0r   c                Z    R P                  V P                  V P                  ,           4      # )/)rJ   r   r   r   s   &r   r#   Option.__str__  s     xx((4??:;;r   c                    V P                   R J# r   )r   r   s   &r   r   Option.takes_value  s    yy$$r   c                r    V P                   '       d   V P                   ^ ,          # V P                  ^ ,          # )r   )r   r   r   s   &r   get_opt_stringOption.get_opt_string  s+    ?????1%%##A&&r   c                j    V P                   P                  V P                  4      pVf   V# V! WV4      # r   )TYPE_CHECKERr   r   )r   r   r   r  s   &&& r   check_valueOption.check_value  s3    ##''		2?L4e,,r   c           	         VeL   V P                   ^8X  d   V P                  W4      # \        V Uu. uF  q0P                  W4      NK  	  up4      # R # u upi r   )r>  rS  r/  )r   r   r   vs   &&& r   convert_valueOption.convert_value  sR    zzQ''33F1..s6FGG	  Gs   Ac                t    V P                  W4      pV P                  V P                  V P                  WW44      # r   )rW  take_actionr!  r   )r   r   r   valuesrP   s   &&&&&r   processOption.process  s<     ""3.
 KKC@ 	@r   c                F   VR 8X  d   \        WRV4       ^# VR8X  d   \        WRV P                  4       ^# VR8X  d   \        WRR4       ^# VR8X  d   \        WRR4       ^# VR8X  d$   VP                  V. 4      P                  V4       ^# VR8X  d.   VP                  V. 4      P                  V P                  4       ^# VR8X  d&   \        WRVP                  V^ 4      ^,           4       ^# VR	8X  dF   V P                  ;'       g    RpV P
                  ;'       g    / pV P                  ! WWF.VO5/ VB  ^# VR
8X  d#   VP                  4        VP                  4        ^# VR8X  d#   VP                  4        VP                  4        ^# \        RV P                  ,          4      h)r   store_const
store_trueTstore_falseFr   append_constcountrB  r   versionzunknown action %rr6   )r  r:  ensure_valuer   rD  rE  rB  
print_helpexitprint_versionrV   r!  )	r   r!  r   r   r   r[  rP   argskwargss	   &&&&&&&  r   rZ  Option.take_action	  s   WF%(4 3 }$F$**-0 / |#F$', + }$F%(( ' xb)007$ # ~%b)00<   wF&"5"5dA">"BC  z!%%++D))//RFMM$UDTDVD  vKKM  y   "KKM  04;;>??r   )r   r   r!  r   r>  r   )r!  r   r   r  r>  r:  r   rB  rD  rE  r   r   )
r   r_  r`  ra  r   rb  rc  rB  r   rd  )r   r_  r`  ra  r   rb  rc  )r   r   rB  )r   r   )r_  rb  )r&  rR   r   r   r   r  )%r   r&   r'   r(   r  r"  r5  r*  r'  r9  r)  r   r  rR  r
  r    r  r  r	  r#  r+  r2  r6  r;  r?  rG  r#   r   __repr__r   rO  rS  rW  r\  rZ  r)   r*   r+   s   @r   r   r     s     ,E	GM!M&%M
 DE$ 	L  M
&,*&HP0I3N8 # " !!$&M< H%'-H
@ r   c                   f   a  ] tR tRt o RR ltR t]tR tR t	R t
R tRR	 ltRR
 ltR tRtV tR# )r   i-  Nc                d    V'       d(   VP                  4        F  w  r#\        WV4       K  	  R # R # r   )itemsr  )r   r   r  r   s   &&  r   r    Values.__init__/  s'    '~~/C(  0 r   c                ,    \        V P                  4      # r   )r/   __dict__r   s   &r   r#   Values.__str__4  s    4==!!r   c                    \        V\        4      '       d   V P                  VP                  8H  # \        V\        4      '       d   V P                  V8H  # \        # r   )r(  r   rr  rF  NotImplemented)r   others   &&r   __eq__Values.__eq__9  sD    eV$$==ENN22t$$==E))!!r   c                n    \        V 4       F%  pW!9   g   K  W,          pVf   K  \        WV4       K'  	  R # r   )dirr  )r   rF  r  dvals   &&  r   _update_carefulValues._update_carefulA  s.     ID|z#D-	 r   c                <    V P                   P                  V4       R # r   )rr  update)r   rF  s   &&r   _update_looseValues._update_looseN  s     	T"r   c                    VR 8X  d   V P                  V4       R# VR8X  d   V P                  V4       R# \        RV,          4      h)carefulloosezinvalid update mode: %rN)r|  r  rV   )r   rF  modes   &&&r   _updateValues._updateV  s>    9  &W_t$6=>>r   c                    \        V4       \        P                  V,          pV P                  \	        V4      V4       R # r   )
__import__sysmodulesr  vars)r   modnamer  mods   &&& r   read_moduleValues.read_module^  s*    7kk'"T#Y%r   c                r    / p\        \        V4      P                  4       V4       V P                  W24       R # r   )execopenreadr  )r   filenamer  r  s   &&& r   	read_fileValues.read_filec  s*    T(^  "D)T r   c                l    \        W4      '       d   \        W4      f   \        WV4       \        W4      # r   )hasattrgetattrr  )r   r  r   s   &&&r   re  Values.ensure_valueh  s,    t""gd&9&AD&t""r   r6   r   )r  )r   r&   r'   r(   r    r#   r   rl  rw  r|  r  r  r  r  re  r)   r*   r+   s   @r   r   r   -  s>     )
" H".#?&
!
# #r   c                      a  ] tR tRt o R tR tR tR tR tR t	R t
R	 tR
 tR tR tR tR tR tR tR tRtV tR# )r   in  c                v    V P                  4        Wn        V P                  V4       V P                  V4       R # r   )_create_option_listoption_classset_conflict_handlerset_description)r   r  conflict_handlerr   s   &&&&r   r    OptionContainer.__init__  s3    
 	  "(!!"23[)r   c                0    / V n         / V n        / V n        R # r   
_short_opt	_long_optr   r   s   &r   _create_option_mappings'OptionContainer._create_option_mappings  s     r   c                l    VP                   V n         VP                  V n        VP                  V n        R # r   r  rg   s   &&r   _share_option_mappings&OptionContainer._share_option_mappings  s)     !++))r   c                D    VR9  d   \        RV,          4      hWn        R# )errorz$invalid conflict_resolution value %rN)r  resolve)rV   r  )r   handlers   &&r   r  $OptionContainer.set_conflict_handler  s"    ..CgMNN 'r   c                    Wn         R # r   r   r   s   &&r   r  OptionContainer.set_description  s    &r   c                    V P                   # r   r  r   s   &r   get_descriptionOptionContainer.get_description  s    r   c                    V = V =V =R # r   r  r   s   &r   destroyOptionContainer.destroy  s    ONMr   c           
     r   . pVP                    F8  pW0P                  9   g   K  VP                  W0P                  V,          34       K:  	  VP                   F8  pW0P                  9   g   K  VP                  W0P                  V,          34       K:  	  V'       Ed   V P
                  pVR 8X  d9   \        RRP                  V Uu. uF  qU^ ,          NK  	  up4      ,          V4      hVR8X  d   V F  w  r6VP                  R4      '       d*   VP                  P                  V4       V P                  V M(VP                   P                  V4       V P                  V VP                   '       d   K  VP                  '       d   K  VP                  P                  P                  V4       K  	  R# R# R# u upi )r  z conflicting option string(s): %srI   r  r  N)r   r  r   r   r  r  r   rJ   
startswithremove	containerr   )r   r1   conflict_optsr   r  coc_options   &&     r   _check_conflictOptionContainer._check_conflict  si   %%Coo%$$c??3+?%@A & $$Cnn$$$c>>#+>%?@ % =++G'!)6ii ?2A ?@A  I%'4OS~~d++ ++2237 NN3/ ,,33C8 OOC0$000H4G4G4G **66==hG (5 & 
 !@s   F4c                   \        V^ ,          \        4      '       d   V P                  ! V/ VB pMU\        V4      ^8X  d;   V'       g3   V^ ,          p\        V\        4      '       g   \        RV,          4      hM\        R4      hV P                  V4       V P                  P                  V4       Wn	        VP                   F  pW0P                  V&   K  	  VP                   F  pW0P                  V&   K  	  VP                  en   VP                  \         Jd&   VP                  V P"                  VP                  &   V# VP                  V P"                  9  d   RV P"                  VP                  &   V# )r   znot an Option instance: %rinvalid argumentsN)r(  r/   r  r   r   r  r  r   r   r  r   r  r   r  r   r  r   r   )r   ri  rj  r1   r   s   &*,  r   
add_optionOptionContainer.add_option  s/    d1gs##&&77FY!^F!WFff-- <v EFF . /00V$'%%C#)OOC  &$$C"(NN3 % ;;"~~Z/-3^^fkk*  DMM1-1fkk*r   c                :    V F  pV P                  V4       K  	  R # r   )r  )r   r   r1   s   && r   add_optionsOptionContainer.add_options  s    !FOOF# "r   c                ~    V P                   P                  V4      ;'       g    V P                  P                  V4      # r   )r  r   r  r>   s   &&r   
get_optionOptionContainer.get_option  s5    ##G, , ,""7+	-r   c                J    WP                   9   ;'       g    WP                  9   # r   )r  r  r>   s   &&r   
has_optionOptionContainer.has_option  s%    ??* * *>>)	+r   c                p   V P                   P                  V4      pVf   V P                  P                  V4      pVf   \        RV,          4      hVP                   F  pV P                   V K  	  VP
                   F  pV P                  V K  	  VP                  P                  P                  V4       R # )Nzno such option %r)	r  r   r  rV   r   r   r  r   r  )r   r=   r1   r   s   &&  r   remove_optionOptionContainer.remove_option  s    $$W->^^''0F>07:;;%%C$ &$$Cs# %$$++F3r   c                    V P                   '       g   R # . pV P                    F9  pVP                  \        J d   K  VP                  VP	                  V4      4       K;  	  R P                  V4      # rk   )r   r   SUPPRESS_HELPr   r   rJ   )r   	formatterr   r1   s   &&  r   format_option_help"OptionContainer.format_option_help  sY    &&F;;-/i55f=> ' wwvr   c                @    VP                  V P                  4       4      # r   )r   r  r   r  s   &&r   r   "OptionContainer.format_description  s    ++D,@,@,BCCr   c                    . pV P                   '       d!   VP                  V P                  V4      4       V P                  '       d!   VP                  V P	                  V4      4       R P                  V4      # )r   )r   r   r   r   r  rJ   r   r  r   s   && r   format_helpOptionContainer.format_help!  s\    MM$11)<=MM$11)<=yy  r   )r  r  r  r   r   r  N)r   r&   r'   r(   r    r  r  r  r  r  r  r  r  r  r  r  r  r  r   r  r)   r*   r+   s   @r   r   r   n  s]     @	*((
' H6<$-+4 D! !r   c                   B   a  ] tR tRt o R	R ltR tR tR tR tRt	V t
R# )
r   i*  Nc                t    Wn         \        P                  WP                  VP                  V4       W n        R # r   )rP   r   r    r  r  title)r   rP   r  r   s   &&&&r   r    OptionGroup.__init__,  s.      %%v'>'>	M
r   c                J    . V n         V P                  V P                  4       R # r   )r   r  rP   r   s   &r   r  OptionGroup._create_option_list2  s    ##DKK0r   c                    Wn         R # r   )r  )r   r  s   &&r   	set_titleOptionGroup.set_title6  s    
r   c                4    \         P                  V 4       V =R # r   )r   r  r   r   s   &r   r  OptionGroup.destroy9  s    %r   c                    VP                  V P                  4      pVP                  4        V\        P	                  W4      ,          pVP                  4        V# r   )r   r  rz   r   r  r}   r  s   && r   r  OptionGroup.format_help@  sH    ))$**5/--d>>r   )r   rP   r  r   )r   r&   r'   r(   r    r  r  r  r  r)   r*   r+   s   @r   r   r   *  s#     1 r   c            
       :  a  ] tR tRt o . tRR]RRRRRRR3
R ltR tR tR t	R	 t
R+R
 ltR tR tR tR tR tR tR tR tR tR tR tR tR,R ltR tR tR tR tR tR tR tR t R-R  lt!R! t"R" t#R.R# lt$R$ t%R.R% lt&R.R& lt'R' t(R.R( lt)R.R) lt*R*t+V t,R# )/r   iH  Nr  Tc                8   \         P                  WWV4       V P                  V4       Wn        W@n        R V n        R V n        Vf   \        4       pWpn        V P                  P                  V 4       Wn
        V P                  VVR7       V P                  4        R# )TN)add_help)r   r    	set_usageprogrd  allow_interspersed_argsprocess_default_valuesr   r  rh   r   _populate_option_list_init_parsing_state)r   r   r   r  rd  r  r   r  add_help_optionr  r   s   &&&&&&&&&&&r   r    OptionParser.__init__  s     	   0	?u	'+$&*#-/I"!!$' 	"";,; 	# 	= 	  "r   c                    \         P                  V 4       V P                   F  pVP                  4        K  	  V =V =V =R # r   )r   r  r   r   r  )r   r   s   & r   r  OptionParser.destroy  s<     	%''EMMO (Nr   c                B    . V n         . V n        V P                  4        R # r   )r   r   r  r   s   &r   r   OptionParser._create_option_list  s    $$&r   c                B    V P                  R RR\        R4      R7       R# )z-hz--helpr   zshow this help message and exitr!  r   Nr  rA   r   s   &r   _add_help_optionOptionParser._add_help_option  s$    h%@A 	 	Cr   c                @    V P                  R R\        R4      R7       R# )z	--versionrd  z&show program's version number and exitr  Nr  r   s   &r   _add_version_option OptionParser._add_version_option  s"    (GH 	 	Jr   c                
   V P                   '       d   V P                  V P                   4       V'       d   V P                  V4       V P                  '       d   V P                  4        V'       d   V P	                  4        R # R # r   )standard_option_listr  rd  r  r   )r   r   r  s   &&&r   r  "OptionParser._populate_option_list  s\    $$$T667[)<<<$$&!!# r   c                0    R V n         R V n        R V n        R # r   )rargslargsr[  r   s   &r   r   OptionParser._init_parsing_state  s    

r   c                    Vf   \        R4      V n        R # V\        J d
   R V n        R # VP                  4       P	                  R4      '       d   VR,          V n        R # Wn        R # )Nz%prog [options]zusage: :   NN)rA   r   SUPPRESS_USAGEr   r  r   s   &&r   r  OptionParser.set_usage  sJ    =,-DJn$DJ[[]%%i00rDJJr   c                    R V n         R# )TNr  r   s   &r   enable_interspersed_args%OptionParser.enable_interspersed_args  s     (,$r   c                    R V n         R# )FNr  r   s   &r   disable_interspersed_args&OptionParser.disable_interspersed_args  s     (-$r   c                    Wn         R # r   )r  )r   r\  s   &&r   set_process_default_values'OptionParser.set_process_default_values  s    &-#r   c                "    W P                   V&   R # r   )r   )r   r   r   s   &&&r   set_defaultOptionParser.set_default  s    #dr   c                <    V P                   P                  V4       R # r   )r   r  )r   rj  s   &,r   set_defaultsOptionParser.set_defaults  s    V$r   c                    V P                   R ,          pV P                   F  pVP                  VP                   4       K   	  V# )NNN)r   r   r   )r   optionsr   s   &  r   _get_all_optionsOptionParser._get_all_options
  s9    ""1%''ENN5,,- (r   c                   V P                   '       g   \        V P                  4      # V P                  P                  4       pV P	                  4        Fc  pVP                  VP                  4      p\        V\        4      '       g   K6  VP                  4       pVP                  WC4      WP                  &   Ke  	  \        V4      # r   )r  r   r   copyr#  r   r   r(  r/   rO  rS  )r   r   r1   r  r=   s   &    r   get_default_valuesOptionParser.get_default_values  s    ***$--((==%%'++-Fll6;;/G'3'' //1(.(:(:7(L%	 . hr   c                v   \        V^ ,          \        4      '       d   \        V .VO5/ VB pMp\        V4      ^8X  dV   V'       gN   V^ ,          p\        V\        4      '       g   \	        RV,          4      hVP
                  V Jd   \        R4      hM\	        R4      hV P                  P                  V4       V# )r   znot an OptionGroup instance: %rz"invalid OptionGroup (wrong parser)r  )	r(  r/   r   r   r  rP   rV   r   r   )r   ri  rj  r   s   &*, r   add_option_groupOptionParser.add_option_group!  s    d1gs##6t6v6EY!^FGEe[11 AE IJJ||4' !EFF ( /00!!%(r   c                    V P                   P                  V4      ;'       g    V P                  P                  V4      pV'       d   VP                  V Jd   VP                  # R # r   )r  r   r  r  )r   r=   r1   s   && r   get_option_groupOptionParser.get_option_group1  sT    //%%g. . ...$$W- 	f&&d2###r   c                J    Vf   \         P                  R,          # VR,          # )Nr   r!  )r  argv)r   ri  s   &&r   	_get_argsOptionParser._get_args;  s    <88B<7Nr   c                >   V P                  V4      pVf   V P                  4       pW0n        . ;V n        pW n         V P                  WCV4      pWC,           pV P                  W!4      #   \        \        3 d%   pT P                  \        T4      4        R p?LIR p?ii ; ir   )r1  r'  r	  r
  r[  _process_argsr   r   r  r/   check_values)r   ri  r[  r	  r
  stoperrs   &&&    r   
parse_argsOptionParser.parse_argsA  s     t$>,,.F 

U	!%%eF;D }  ..	  01 	!JJs3x  	!s   A' 'B8BBc                    W3# r   r6   )r   r[  ri  s   &&&r   r5  OptionParser.check_valuesh  s     ~r   c                8   V'       d   V^ ,          pVR8X  d   V^  R# VR,          R8X  d   V P                  W#4       K>  VR,          R8X  d$   \        V4      ^8  d   V P                  W#4       Ko  V P                  '       d   VP	                  V4       V^  K  R# R# )r   r  Nr  r   r  )_process_long_optr   _process_short_optsr  r   )r   r
  r	  r[  args   &&&& r   r4  OptionParser._process_argsu  s     (C d{!HST!&&u5RCCHqL ((7---S!!H' r   c                ,    \        WP                  4      # r   )_match_abbrevr  )r   r   s   &&r   _match_long_optOptionParser._match_long_opt  s     S..11r   c                d   VP                  ^ 4      pRV9   d*   VP                  R^4      w  rEVP                  ^ V4       RpMTpRpV P                  V4      pV P                  V,          pVP                  4       '       dr   VP                  p\        V4      V8  d)   V P                  \        RRV4      RVRV/,          4       MYV^8X  d   VP                  ^ 4      p	M@\        V^ V 4      p	V^ V1 M,V'       d#   V P                  \        R4      V,          4       MR	p	VP                  VX	W 4       R	# )
r   rs   TF.%(option)s option requires %(number)d argument/%(option)s option requires %(number)d argumentsr1   numberz%s option does not take a valueN)popr1  insertrC  r  r   r>  r   r  r   r/  rA   r\  )
r   r	  r[  r?  r   next_arghad_explicit_valuer1   r>  r   s
   &&&       r   r=  OptionParser._process_long_opt  s   iil #:!iiQ/OSLLH%!%C!&""3'$LLE5zE!

8DE 'Xu=> ? !		!eAen-!E'NJJq:;cAB EsE60r   c                n   VP                  ^ 4      pRp^pVR,           EF  pRV,           pV P                  P                  V4      pV^,          pV'       g   \        V4      hVP	                  4       '       d   V\        V4      8  d   VP                  ^ W5R 4       RpVP                  p	\        V4      V	8  d)   V P                  \        RRV	4      RVR	V	/,          4       M/V	^8X  d   VP                  ^ 4      p
M\        V^ V	 4      p
V^ V	1 MRp
VP                  VX
W 4       V'       g   EK   R# 	  R# )
r   Fr   r  NTrF  rG  r1   rH  )rI  r  r   r   r   r   rJ  r>  r  r   r/  r\  )r   r	  r[  r?  r6  ichr   r1   r>  r   s   &&&        r   r>   OptionParser._process_short_opts  s'   iilb''B(C__((-FFA$S))!!## s3x<LLCG,Du:%JJxHI  #+C5!A B C aZ!IIaLE!%%.1Eag NN3v4tA r   c                    V P                   f5   \        P                  P                  \        P
                  ^ ,          4      # V P                   # r   )r  rS   pathbasenamer  r0  r   s   &r   get_prog_nameOptionParser.get_prog_name  s3    9977##CHHQK0099r   c                B    VP                  R V P                  4       4      # )z%prog)r   rU  )r   ss   &&r   expand_prog_nameOptionParser.expand_prog_name  s    yy$"4"4"677r   c                8    V P                  V P                  4      # r   )rY  r   r   s   &r   r  OptionParser.get_description  s    $$T%5%566r   c                    V'       d    \         P                  P                  V4       \         P                  ! V4       R # r   )r  stderrwriterg  )r   statusr   s   &&&r   rg  OptionParser.exit
  s#    JJS!r   c                    V P                  \        P                  4       V P                  ^V P	                  4       : RV: R24       R# )r   z	: error: r   N)print_usager  r^  rg  rU  r   s   &&r   r  OptionParser.error  s2     	$		!$*<*<*>DEr   c                    V P                   '       d5   V P                  P                  V P                  V P                   4      4      # R # r  )r   r  r   rY  r   s   &r   	get_usageOptionParser.get_usage  s9    :::>>..%%djj13 3 r   c                d    V P                   '       d   \        V P                  4       VR 7       R# R# )fileN)r   printrf  r   rj  s   &&r   rc  OptionParser.print_usage   s#     :::$..". r   c                `    V P                   '       d   V P                  V P                   4      # R # r  )rd  rY  r   s   &r   get_versionOptionParser.get_version,  s#    <<<((66r   c                d    V P                   '       d   \        V P                  4       VR 7       R# R# ri  )rd  rk  ro  rl  s   &&r   rh  OptionParser.print_version2  s%     <<<$""$40 r   c                   Vf   V P                   pVP                  V 4       . pVP                  VP                  \	        R4      4      4       VP                  4        V P                  '       d6   VP                  \        P                  W4      4       VP                  R4       V P                   F4  pVP                  VP                  V4      4       VP                  R4       K6  	  VP                  4        RP                  VR R 4      # )NOptionsr   rk   r   )r  r   r   r   rA   rz   r   r   r  r   r  r}   rJ   )r   r  r   r   s   &&  r   r  OptionParser.format_option_help=  s    I&&t,i..q|<=MM/<<TMNMM$''EMM%++I67MM$ ( 	wwvcr{##r   c                8    VP                  V P                  4      # r   )r   r   r  s   &&r   r   OptionParser.format_epilogN  s    &&t{{33r   c                   Vf   V P                   p. pV P                  '       d'   VP                  V P                  4       R,           4       V P                  '       d(   VP                  V P                  V4      R,           4       VP                  V P                  V4      4       VP                  V P                  V4      4       RP                  V4      # )Nr   rk   )	r  r   r   rf  r   r   r  r   rJ   r  s   && r   r  OptionParser.format_helpQ  s    I:::MM$..*T12MM$11)<tCDd--i89d((34wwvr   c                l    Vf   \         P                  pVP                  V P                  4       4       R # r   )r  stdoutr_  r  rl  s   &&r   rf  OptionParser.print_help]  s'     <::D

4##%&r   )r  r   r  r
  r   r   r  r  r	  r   r[  rd  )T)NNr   r   )-r   r&   r'   r(   r  r   r    r  r  r   r  r  r  r  r  r  r  r  r  r#  r'  r*  r-  r1  r8  r5  r4  rC  r=  r>  rU  rY  r  rg  r  rf  rc  ro  rh  r  r   r  rf  r)   r*   r+   s   @r   r   r   H  s     L  !$")!!%#D$'
C
J
$	,-.$% " %/Nf2"1H$R87
F
/	1$"4
' 'r   c                    W9   d   V # VP                  4        Uu. uF  pVP                  V 4      '       g   K  VNK   	  pp\        V4      ^8X  d
   V^ ,          # V'       g   \        V 4      hVP	                  4        \        W4      hu upi )rx   )r  r  r   r   sortrD   )rX  wordmapwordrF   s   &&  r   rB  rB  j  s     	| +2,,. 0.$ OOA. . 0 }" ## ##  &q880s
   BB)r   make_optionr  r  r   r   r   r   r   r   r	   r
   r   r   r   r   r  )NODEFAULTSUPPRESSHELPSUPPRESSUSAGE)$__version____all____copyright__r  rS   r   rA   r   r   	Exceptionr
   r   r   r   r   rD   r   r   r	   r   r   r   r   r   r   r  r   r   r  r  r   r   r   r   rB  r  r6   r   r   <module>r     sQ  0 $@  *JY =  ; 
 6m 6
AN 
AO Ob?] ?&G= G&  *a	l3:q|4E1%5#67gq|47
G% 
n nf "#># >#By! y!x? <]'O ]'D9: r   